24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CL_CROP_RESIZE_H
25 #define ARM_COMPUTE_CL_CROP_RESIZE_H
40 class CLCompileContext;
90 float extrapolation_value = 0);
114 float extrapolation_value = 0);
140 float extrapolation_value);
152 std::vector<std::unique_ptr<CLScale>>
_scale;
153 std::vector<std::unique_ptr<CLCopy>>
_copy;
void run() override
Run the kernels contained in the function.
Base class for all functions.
Interface for OpenCL tensor.
InterpolationPolicy
Interpolation method.
std::vector< std::unique_ptr< CLTensor > > _scaled_results
InterpolationPolicy _method
std::vector< std::unique_ptr< CLScale > > _scale
CLCropResize()
Default constructor.
~CLCropResize()
Default destructor.
std::vector< std::unique_ptr< IFunction > > _internal_functions
CLCropResize & operator=(const CLCropResize &)=delete
Prevent instances of this class from being copied (As this class contains pointers)
std::vector< std::unique_ptr< CLTensor > > _crop_results
static Status validate(const ITensorInfo *input, ITensorInfo *boxes, ITensorInfo *box_ind, const ITensorInfo *output, Coordinates2D crop_size, InterpolationPolicy method, float extrapolation_value)
Static function to check if given info will lead to a valid configuration of NESlice.
std::vector< std::unique_ptr< CLCopy > > _copy
@ BILINEAR
Output values are defined by bilinear interpolation between the pixels.
Function to perform cropping and resizing.
void configure(const ICLTensor *input, ICLTensor *boxes, ICLTensor *box_ind, ICLTensor *output, Coordinates2D crop_size, InterpolationPolicy method=InterpolationPolicy::BILINEAR, float extrapolation_value=0)
Configure kernel.
float _extrapolation_value
Copyright (c) 2017-2024 Arm Limited.
Store the tensor's metadata.