21.02
|
Basic function to negate an input tensor. More...
#include <CLElementWiseUnaryLayer.h>
Public Member Functions | |
CLNegLayer () | |
Default Constructor. More... | |
~CLNegLayer () | |
Default Destructor. More... | |
CLNegLayer (const CLNegLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLNegLayer (CLNegLayer &&) | |
Default move constructor. More... | |
CLNegLayer & | operator= (const CLNegLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLNegLayer & | operator= (CLNegLayer &&) |
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 CLNegLayer. More... | |
Basic function to negate an input tensor.
Definition at line 132 of file CLElementWiseUnaryLayer.h.
CLNegLayer | ( | ) |
Default Constructor.
Definition at line 124 of file CLElementWiseUnaryLayer.cpp.
References CLNegLayer::operator=(), and CLNegLayer::~CLNegLayer().
|
default |
Default Destructor.
Referenced by CLNegLayer::CLNegLayer().
|
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 133 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 138 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 CLNegLayer::CLNegLayer().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 150 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 CLNegLayer.
[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 145 of file CLElementWiseUnaryLayer.cpp.
References ClNeg::validate().