23.08
|
Functions | |
float | calculate_resize_ratio (size_t input_size, size_t output_size, bool align_corners=false) |
Returns resize ratio between input and output with consideration of aligned corners. More... | |
bool | is_align_corners_allowed_sampling_policy (SamplingPolicy sampling_policy) |
Returns if aligned corners are allowed for the given sampling policy. More... | |
bool | is_precomputation_required (DataLayout data_layout, DataType data_type, InterpolationPolicy policy, BorderMode border_mode) |
Returns if precomputation of indices and/or weights is required or/not. More... | |
float calculate_resize_ratio | ( | size_t | input_size, |
size_t | output_size, | ||
bool | align_corners = false |
||
) |
Returns resize ratio between input and output with consideration of aligned corners.
[in] | input_size | The input size |
[in] | output_size | the output size |
[in] | align_corners | True to align corners of input and output. Defaults to false. |
Definition at line 31 of file ScaleUtils.cpp.
References ARM_COMPUTE_ERROR_ON, arm_compute::test::validation::input_size, offset(), and arm_compute::test::validation::output_size.
Referenced by arm_compute::cpu::bilinear_neon_scale(), CpuScale::configure(), CpuScaleKernel::configure(), NEScale::configure(), ClTemplateResize::get_tag_lut(), arm_compute::cpu::nearest_neon_scale(), CpuScale::prepare(), arm_compute::test::validation::reference::scale_core(), and CpuScale::validate().
|
inline |
Returns if aligned corners are allowed for the given sampling policy.
[in] | sampling_policy | The sampling policy to consider |
Definition at line 49 of file ScaleUtils.h.
References arm_compute::CENTER, and arm_compute::test::validation::sampling_policy.
Referenced by CpuScale::configure(), NEScale::configure(), CpuScale::prepare(), CpuScale::validate(), and ClComponentResize::validate().
bool is_precomputation_required | ( | DataLayout | data_layout, |
DataType | data_type, | ||
InterpolationPolicy | policy, | ||
BorderMode | border_mode | ||
) |
Returns if precomputation of indices and/or weights is required or/not.
[in] | data_layout | Data layout |
[in] | data_type | Data type |
[in] | policy | Interpolation policy |
[in] | border_mode | Border Mode |
Definition at line 43 of file ScaleUtils.cpp.
References arm_compute::test::validation::data_layout, arm_compute::test::validation::data_type, CPUInfo::get(), and arm_compute::test::validation::sve.
Referenced by NEScale::configure(), and CpuScale::prepare().