21.02
|
Basic function to run opencl::kernels::ClArithmeticKernel for squared difference. More...
#include <CLElementwiseOperations.h>
Public Member Functions | |
CLElementwiseSquaredDiff () | |
Default Constructor. More... | |
~CLElementwiseSquaredDiff () | |
Default Destructor. More... | |
CLElementwiseSquaredDiff (const CLElementwiseSquaredDiff &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLElementwiseSquaredDiff (CLElementwiseSquaredDiff &&) | |
Default move constructor. More... | |
CLElementwiseSquaredDiff & | operator= (const CLElementwiseSquaredDiff &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLElementwiseSquaredDiff & | operator= (CLElementwiseSquaredDiff &&) |
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 squared difference. More... | |
Basic function to run opencl::kernels::ClArithmeticKernel for squared difference.
Definition at line 433 of file CLElementwiseOperations.h.
Default Constructor.
Definition at line 272 of file CLElementwiseOperations.cpp.
References CLElementwiseSquaredDiff::operator=(), and CLElementwiseSquaredDiff::~CLElementwiseSquaredDiff().
|
default |
Default Destructor.
Referenced by CLElementwiseSquaredDiff::CLElementwiseSquaredDiff().
|
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: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/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: same as input1 . 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: same as input1 . |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 280 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: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/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: same as input1 . 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: same as input1 . |
[in] | act_info | (Optional) Activation layer information in case of a fused activation. |
Definition at line 285 of file CLElementwiseOperations.cpp.
References ITensor::info().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CLElementwiseSquaredDiff::CLElementwiseSquaredDiff().
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 299 of file CLElementwiseOperations.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 opencl::kernels::ClArithmeticKernel for squared difference.
[in] | input1 | First tensor input info. Data types supported: U8/QASYMM8/QASYMM8_SIGNED/S16/QSYMM16/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. |
Definition at line 294 of file CLElementwiseOperations.cpp.
References ClElementwiseSquaredDiff::validate().