21.02
|
Basic function to calculate sine of an input tensor. More...
#include <CLElementWiseUnaryLayer.h>
Public Member Functions | |
CLSinLayer () | |
Default Constructor. More... | |
~CLSinLayer () | |
Default Destructor. More... | |
CLSinLayer (const CLSinLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLSinLayer (CLSinLayer &&) | |
Default move constructor. More... | |
CLSinLayer & | operator= (const CLSinLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLSinLayer & | operator= (CLSinLayer &&) |
Default move assignment operator. More... | |
void | configure (const ICLTensor *input, ICLTensor *output) |
Initialize the function. More... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, ICLTensor *output) |
Initialize the function. 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) |
Static function to check if given info will lead to a valid configuration of CLSinLayer. More... | |
Basic function to calculate sine of an input tensor.
Definition at line 178 of file CLElementWiseUnaryLayer.h.
CLSinLayer | ( | ) |
Default Constructor.
Definition at line 165 of file CLElementWiseUnaryLayer.cpp.
References CLSinLayer::operator=(), and CLSinLayer::~CLSinLayer().
|
default |
Default Destructor.
Referenced by CLSinLayer::CLSinLayer().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Initialize the function.
[in] | input | Input tensor. Data types supported: F16/F32. |
[out] | output | Output tensor. Data types supported: same as input . |
Definition at line 174 of file CLElementWiseUnaryLayer.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
ICLTensor * | output | ||
) |
Initialize the function.
[in] | compile_context | The compile context to be used. |
[in] | input | Input tensor. Data types supported: F16/F32. |
[out] | output | Output tensor. Data types supported: same as input . |
Definition at line 179 of file CLElementWiseUnaryLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLSinLayer::CLSinLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 191 of file CLElementWiseUnaryLayer.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC, ITensorPack::add_tensor(), arm_compute::test::validation::dst, and arm_compute::test::validation::src.
|
static |
Static function to check if given info will lead to a valid configuration of CLSinLayer.
[in] | input | First tensor input info. Data types supported: F16/F32. |
[in] | output | Output tensor info. Data types supported: Same as input . |
Definition at line 186 of file CLElementWiseUnaryLayer.cpp.
References ClSin::validate().