23.05
|
Basic function to get the absolute value of an src tensor. More...
#include <ClElementwiseUnary.h>
Public Member Functions | |
void | configure (const ClCompileContext &compile_context, const ITensorInfo *src, ITensorInfo *dst) |
Initialize the function. More... | |
![]() | |
ICLOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
ICLOperator (const ICLOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator (ICLOperator &&)=default | |
Default move constructor. More... | |
ICLOperator & | operator= (const ICLOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLOperator & | operator= (ICLOperator &&)=default |
Default move assignment operator. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
void | prepare (ITensorPack &constants) override |
Prepare the function for executing. More... | |
MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. More... | |
![]() | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src, const ITensorInfo *dst) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to get the absolute value of an src tensor.
Definition at line 135 of file ClElementwiseUnary.h.
void configure | ( | const ClCompileContext & | compile_context, |
const ITensorInfo * | src, | ||
ITensorInfo * | dst | ||
) |
Initialize the function.
[in] | compile_context | The compile context to be used. |
[in] | src | Source tensor info. Data types supported: F16/F32. |
[out] | dst | Destination tensor info. Data types supported: same as src . |
Definition at line 86 of file ClElementwiseUnary.cpp.
References arm_compute::ABS, ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::k.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to ClAbs::configure()
Definition at line 94 of file ClElementwiseUnary.cpp.
References arm_compute::ABS, and ClElementWiseUnaryKernel::validate().
Referenced by CLAbsLayer::validate().