21.02
|
Basic function to run opencl::kernels::ClArithmeticKernel for power. More...
#include <CLElementwiseOperations.h>
Public Member Functions | |
CLElementwisePower () | |
Default Constructor. More... | |
~CLElementwisePower () | |
Default Destructor. More... | |
CLElementwisePower (const CLElementwisePower &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLElementwisePower (CLElementwisePower &&) | |
Default move constructor. More... | |
CLElementwisePower & | operator= (const CLElementwisePower &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLElementwisePower & | operator= (CLElementwisePower &&) |
Default move assignment operator. More... | |
void | configure (ICLTensor *input1, ICLTensor *input2, ICLTensor *output, const ActivationLayerInfo &act_info=ActivationLayerInfo()) |
Initialise the kernel's inputs, output and conversion policy. More... | |
void | configure (const CLCompileContext &compile_context, ICLTensor *input1, ICLTensor *input2, ICLTensor *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 opencl::kernels::ClArithmeticKernel for power. More... | |
Basic function to run opencl::kernels::ClArithmeticKernel for power.
Definition at line 493 of file CLElementwiseOperations.h.
Default Constructor.
Definition at line 317 of file CLElementwiseOperations.cpp.
References CLElementwisePower::operator=(), and CLElementwisePower::~CLElementwisePower().
|
default |
Default Destructor.
Referenced by CLElementwisePower::CLElementwisePower().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move constructor.
void configure | ( | ICLTensor * | input1, |
ICLTensor * | input2, | ||
ICLTensor * | 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. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[in,out] | input2 | Second tensor input. Data types supported: F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[out] | output | Output tensor. Data types supported:F16/F32. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 325 of file CLElementwiseOperations.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
ICLTensor * | input1, | ||
ICLTensor * | input2, | ||
ICLTensor * | output, | ||
const ActivationLayerInfo & | act_info = ActivationLayerInfo() |
||
) |
Initialise the kernel's inputs, output and conversion policy.
[in] | compile_context | The compile context to be used. |
[in,out] | input1 | First tensor input. Data types supported: F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[in,out] | input2 | Second tensor input. Data types supported: F16/F32. The input tensor is [in, out] because its TensorInfo might be modified inside the kernel in case of broadcasting of dimension 0. |
[out] | output | Output tensor. Data types supported:F16/F32. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 330 of file CLElementwiseOperations.cpp.
References ITensor::info().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLElementwisePower::CLElementwisePower().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 344 of file CLElementwiseOperations.cpp.
References arm_compute::ACL_DST, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, and ITensorPack::add_tensor().
|
static |
Static function to check if given info will lead to a valid configuration of opencl::kernels::ClArithmeticKernel for power.
[in] | input1 | First tensor input info. Data types supported: F16/F32. |
[in] | input2 | Second tensor input info. Data types supported: F16/F32. |
[in] | output | Output tensor info. Data types supported: F16/F32. |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 339 of file CLElementwiseOperations.cpp.
References ClElementwisePower::validate().
Referenced by arm_compute::test::validation::DATA_TEST_CASE().