diff options
Diffstat (limited to 'arm_compute')
-rw-r--r-- | arm_compute/core/Utils.h | 11 | ||||
-rw-r--r-- | arm_compute/runtime/NEON/functions/NEScale.h | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h index eff6157b1f..481dab3526 100644 --- a/arm_compute/core/Utils.h +++ b/arm_compute/core/Utils.h @@ -991,6 +991,17 @@ QuantizationInfo get_softmax_output_quantization_info(DataType input_type, bool */ float calculate_resize_ratio(size_t input_size, size_t output_size, bool align_corners = false); +/** Returns if aligned corners are allowed for the given sampling policy + * + * @param[in] sampling_policy The sampling policy to consider + * + * @return True if aligned corners are allowed + */ +inline bool is_align_corners_allowed(SamplingPolicy sampling_policy) +{ + return sampling_policy != SamplingPolicy::CENTER; +} + /** Returns a pair of minimum and maximum values for a quantized activation * * @param[in] act_info The information for activation diff --git a/arm_compute/runtime/NEON/functions/NEScale.h b/arm_compute/runtime/NEON/functions/NEScale.h index 5350d0646c..f77b043f0f 100644 --- a/arm_compute/runtime/NEON/functions/NEScale.h +++ b/arm_compute/runtime/NEON/functions/NEScale.h @@ -100,7 +100,6 @@ private: NEScaleKernel _scale_kernel; /**< Kernel to perform the scaling */ NEFillBorderKernel _border_handler; /**< kernel to handle tensor borders */ bool _use_padding; /**< Is padding used on the tensors */ - bool _align_corners; /**< Align corners of input and output */ }; } // namespace arm_compute #endif /*ARM_COMPUTE_NESCALEIMAGE_H */ |