Compute Library
 22.11
ScaleUtils.h File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::scale_utils
 

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...