24.02.1
|
Go to the documentation of this file.
41 return static_cast<float>(in) /
static_cast<float>(out);
56 return (
CPUInfo::get().get_isa().
sve ==
true && policy == InterpolationPolicy::NEAREST_NEIGHBOR);
59 case DataType::QASYMM8:
60 case DataType::QASYMM8_SIGNED:
61 return (border_mode != BorderMode::REPLICATE) || (policy == InterpolationPolicy::NEAREST_NEIGHBOR);
DataLayout
[DataLayout enum definition]
InterpolationPolicy
Interpolation method.
static CPUInfo & get()
Access the KernelLibrary singleton.
constexpr auto data_layout
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
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.
__global uchar * offset(const Image *img, int x, int y)
Get the pointer position of a Image.
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.
BorderMode
Methods available to handle borders.
DataType
Available data types.