23.08
|
Basic function to run opencl::ClScale. More...
#include <CLScale.h>
Public Member Functions | |
CLScale () | |
Default Constructor. More... | |
~CLScale () | |
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... | |
![]() | |
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 opencl::ClScale.
CLScale | ( | ) |
Default Constructor.
Definition at line 41 of file CLScale.cpp.
|
default |
Default Destructor.
Prevent instances of this class from being copied (As this class contains pointers)
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 52 of file CLScale.cpp.
References ITensor::info(), arm_compute::test::validation::info, and arm_compute::test::validation::input.
void configure | ( | ICLTensor * | input, |
ICLTensor * | output, | ||
const ScaleKernelInfo & | info | ||
) |
Initialize the function's source, destination, interpolation type and border_mode.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED |
F16 | F16 |
F32 | F32 |
U8 | U8 |
S16 | S16 |
[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 47 of file CLScale.cpp.
References CLKernelLibrary::get(), arm_compute::test::validation::info, and arm_compute::test::validation::input.
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 66 of file CLScale.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), and arm_compute::test::validation::pack.
|
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 61 of file CLScale.cpp.
References arm_compute::test::validation::info, arm_compute::test::validation::input, and ClScale::validate().
Referenced by arm_compute::test::validation::TEST_CASE().