24.02.1
|
Basic function to get the round (to the nearest even) value of an input tensor. More...
#include <CLElementwiseUnaryLayer.h>
Public Member Functions | |
CLRoundLayer () | |
Default Constructor. More... | |
~CLRoundLayer () | |
Default Destructor. More... | |
CLRoundLayer (const CLRoundLayer &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLRoundLayer (CLRoundLayer &&) | |
Default move constructor. More... | |
CLRoundLayer & | operator= (const CLRoundLayer &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLRoundLayer & | operator= (CLRoundLayer &&) |
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 CLRoundLayer. More... | |
Basic function to get the round (to the nearest even) value of an input tensor.
Definition at line 370 of file CLElementwiseUnaryLayer.h.
CLRoundLayer | ( | ) |
Default Constructor.
Definition at line 283 of file CLElementwiseUnaryLayer.cpp.
|
default |
Default Destructor.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
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 296 of file CLElementwiseUnaryLayer.cpp.
References ITensor::info(), and arm_compute::test::validation::input.
Initialize the function.
Valid data layouts:
Valid data type configurations:
src | dst |
---|---|
F16 | F16 |
F32 | F32 |
[in] | input | Input tensor. Data types supported: F16/F32. |
[out] | output | Output tensor. Data types supported: same as input . |
Definition at line 291 of file CLElementwiseUnaryLayer.cpp.
References CLKernelLibrary::get(), and arm_compute::test::validation::input.
|
default |
Default move assignment operator.
|
delete |
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 308 of file CLElementwiseUnaryLayer.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 CLRoundLayer.
[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 303 of file CLElementwiseUnaryLayer.cpp.
References arm_compute::test::validation::input, and ClRound::validate().