21.02
|
Basic function to run CLScaleKernel. More...
#include <CLScale.h>
Public Member Functions | |
CLScale () | |
Default Constructor. More... | |
~CLScale ()=default | |
Default Destructor. More... | |
CLScale (const CLScale &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLScale (CLScale &&)=default | |
Default move constructor. More... | |
CLScale & | operator= (const CLScale &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLScale & | operator= (CLScale &&)=default |
Default move assignment operator. More... | |
void | configure (ICLTensor *input, ICLTensor *output, const ScaleKernelInfo &info) |
Initialize the function's source, destination, interpolation type and border_mode. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input, ICLTensor *output, const ScaleKernelInfo &info) |
Initialize the function's source, destination, interpolation type and border_mode. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input, const ITensorInfo *output, const ScaleKernelInfo &info) |
Static function to check if given info will lead to a valid configuration of CLScale. More... | |
Basic function to run CLScaleKernel.
CLScale | ( | ) |
Default Constructor.
Definition at line 33 of file CLScale.cpp.
|
default |
Default Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const ScaleKernelInfo & | info | ||
) |
Initialize the function's source, destination, interpolation type and border_mode.
[in,out] | input | Source tensor. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/F16/F32. (Written to only for border_mode != UNDEFINED) |
[out] | output | Destination tensor. Data types supported: Same as input All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane. |
[in] | info | ScaleKernelInfo descriptor to be used to configure |
Definition at line 38 of file CLScale.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input, | ||
ICLTensor * | output, | ||
const ScaleKernelInfo & | info | ||
) |
Initialize the function's source, destination, interpolation type and border_mode.
[in] | compile_context | The compile context to be used. |
[in,out] | input | Source tensor. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/F16/F32. (Written to only for border_mode != UNDEFINED) |
[out] | output | Destination tensor. Data types supported: Same as input All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane. |
[in] | info | ScaleKernelInfo descriptor to be used to configure |
Definition at line 43 of file CLScale.cpp.
References ScaleKernelInfo::border_mode, ScaleKernelInfo::constant_border_value, arm_compute::test::validation::data_layout, ScaleKernelInfo::data_layout, ITensorInfo::data_layout(), CLScheduler::get(), ITensor::info(), arm_compute::NCHW, CLScheduler::tune_kernel_static(), and arm_compute::UNKNOWN.
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 65 of file CLScale.cpp.
References CLScheduler::enqueue(), and CLScheduler::get().
|
static |
Static function to check if given info will lead to a valid configuration of CLScale.
[in] | input | Source tensor info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/F16/F32. |
[in] | output | Output tensor info. Data type supported: Same as input All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane. |
[in] | info | ScaleKernelInfo descriptor to be used to validate |
Definition at line 60 of file CLScale.cpp.
References CLScaleKernel::validate().
Referenced by arm_compute::test::validation::TEST_CASE().