Compute Library
 21.02
ScaleUtils.h File Reference
#include "arm_compute/core/Types.h"
#include <cstdint>
#include <cstdlib>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 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...