21.02
|
Basic function to run cpu::kernels::CpuArithmeticKernel for power. More...
#include <NEElementwiseOperations.h>
Public Member Functions | |
NEElementwisePower () | |
Default Constructor. More... | |
~NEElementwisePower () | |
Default Destructor. More... | |
NEElementwisePower (const NEElementwisePower &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwisePower (NEElementwisePower &&) | |
Default move constructor. More... | |
NEElementwisePower & | operator= (const NEElementwisePower &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwisePower & | operator= (NEElementwisePower &&) |
Default move assignment operator. More... | |
void | configure (ITensor *input1, ITensor *input2, ITensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Initialise the kernel's inputs, output and conversion policy. 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 *input1, const ITensorInfo *input2, const ITensorInfo *output, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Static function to check if given info will lead to a valid configuration of cpu::kernels::CpuArithmeticKernel for power. More... | |
Basic function to run cpu::kernels::CpuArithmeticKernel for power.
Definition at line 229 of file NEElementwiseOperations.h.
Default Constructor.
Definition at line 206 of file NEElementwiseOperations.cpp.
References NEElementwisePower::operator=(), and NEElementwisePower::~NEElementwisePower().
|
default |
Default Destructor.
Referenced by NEElementwisePower::NEElementwisePower().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | ITensor * | input1, |
ITensor * | input2, | ||
ITensor * | output, | ||
const ActivationLayerInfo & | act_info = ActivationLayerInfo() |
||
) |
Initialise the kernel's inputs, output and conversion policy.
[in,out] | input1 | First tensor input. Data types supported: F16/F32. |
[in,out] | input2 | Second tensor input. Data types supported: Same as input1 . |
[out] | output | Output tensor. Data types supported: Same as input1 . |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. Currently not supported. |
Definition at line 214 of file NEElementwiseOperations.cpp.
References ARM_COMPUTE_UNUSED, and ITensor::info().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEElementwisePower::NEElementwisePower().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 230 of file NEElementwiseOperations.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, ITensorPack::add_tensor(), and arm_compute::test::validation::dst.
|
static |
Static function to check if given info will lead to a valid configuration of cpu::kernels::CpuArithmeticKernel for power.
[in] | input1 | First tensor input info. Data types supported: F16/F32. |
[in] | input2 | Second tensor input info. Data types supported: Same as input1 . |
[in] | output | Output tensor info. Data types supported: Same as input1 . |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. Currently not supported. |
Definition at line 224 of file NEElementwiseOperations.cpp.
References ARM_COMPUTE_RETURN_ERROR_ON, ActivationLayerInfo::enabled(), and CpuElementwisePower::validate().