24.02.1
|
Basic function to run cpu::kernels::CpuArithmeticKernel for min. More...
#include <NEElementwiseOperations.h>
Public Member Functions | |
NEElementwiseMin () | |
Default Constructor. More... | |
~NEElementwiseMin () | |
Default Destructor. More... | |
NEElementwiseMin (const NEElementwiseMin &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwiseMin (NEElementwiseMin &&) | |
Default move constructor. More... | |
NEElementwiseMin & | operator= (const NEElementwiseMin &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEElementwiseMin & | operator= (NEElementwiseMin &&) |
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 min. More... | |
Basic function to run cpu::kernels::CpuArithmeticKernel for min.
Definition at line 107 of file NEElementwiseOperations.h.
NEElementwiseMin | ( | ) |
Default Constructor.
Definition at line 86 of file NEElementwiseOperations.cpp.
|
default |
Default Destructor.
|
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.
Valid data layouts:
Valid data type configurations:
src0 | src1 | dst |
---|---|---|
QASYMM8 | QASYMM8 | QASYMM8 |
QASYMM8_SIGNED | QASYMM8_SIGNED | QASYMM8_SIGNED |
S32 | S32 | S32 |
S16 | S16 | S16 |
F16 | F16 | F16 |
F32 | F32 | F32 |
[in,out] | input1 | First tensor input. Data types supported: QASYMM8/QASYMM8_SIGNED/S16/F16/S32/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 93 of file NEElementwiseOperations.cpp.
References arm_compute::test::validation::act_info, ARM_COMPUTE_UNUSED, and ITensor::info().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Default move assignment operator.
|
overridevirtual |
Run the kernels contained in the function.
For CPU kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 112 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::pack.
|
static |
Static function to check if given info will lead to a valid configuration of cpu::kernels::CpuArithmeticKernel for min.
[in] | input1 | First tensor input info. Data types supported: QASYMM8/QASYMM8_SIGNED/S16/F16/S32/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 103 of file NEElementwiseOperations.cpp.
References arm_compute::test::validation::act_info, ARM_COMPUTE_RETURN_ERROR_ON, and CpuElementwiseArithmetic< op >::validate().