24.02.1
|
Basic function to perform unary elementwise operations. More...
#include <NEElementwiseUnaryLayer.h>
Public Member Functions | |
NEElementwiseUnaryLayer () | |
Default Constructor. More... | |
~NEElementwiseUnaryLayer () | |
Default Destructor. More... | |
NEElementwiseUnaryLayer (const NEElementwiseUnaryLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwiseUnaryLayer (NEElementwiseUnaryLayer &&) | |
Default move constructor. More... | |
NEElementwiseUnaryLayer & | operator= (const NEElementwiseUnaryLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwiseUnaryLayer & | operator= (NEElementwiseUnaryLayer &&) |
Default move assignment operator. More... | |
void | configure (const ITensor *input, ITensor *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. More... | |
Basic function to perform unary elementwise operations.
Definition at line 39 of file NEElementwiseUnaryLayer.h.
Default Constructor.
Definition at line 43 of file NEElementwiseUnaryLayer.cpp.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
Initialize the function.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
F16 | F16 |
F32 | F32 |
S32 | S32 |
[in] | input | Input tensor. Data types supported: F16/F32, F16/F32/S32 for NEG/ABS operations. |
[out] | output | Output tensor. Data types supported: Same as input . |
Definition at line 54 of file NEElementwiseUnaryLayer.cpp.
References arm_compute::test::validation::input.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 69 of file NEElementwiseUnaryLayer.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.
[in] | input | Input tensor info. Data types supported: F16/F32, F16/F32/S32 for NEG/ABS operations. |
[in] | output | Output tensor info. Data types supported: Same as input . |
Definition at line 63 of file NEElementwiseUnaryLayer.cpp.
References arm_compute::test::validation::input, and ClGemm::validate().