24.02.1
|
Class to run cpu::kernels::CpuArithmeticKernel except for division and power. More...
#include <CpuElementwise.h>
Public Member Functions | |
void | configure (const ITensorInfo *src0, const ITensorInfo *src1, ITensorInfo *dst) |
Configure the operator. More... | |
Public Member Functions inherited from CpuElementwiseBase | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from INEOperator | |
INEOperator (IRuntimeContext *ctx=nullptr) | |
Constructor. More... | |
INEOperator (const INEOperator &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator (INEOperator &&)=default | |
Default move constructor. More... | |
INEOperator & | operator= (const INEOperator &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEOperator & | operator= (INEOperator &&)=default |
Default move assignment operator. More... | |
~INEOperator () | |
Default destructor. 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... | |
Public Member Functions inherited from IOperator | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst) |
Static function to check if given info will lead to a valid configuration. More... | |
Class to run cpu::kernels::CpuArithmeticKernel except for division and power.
Definition at line 45 of file CpuElementwise.h.
void configure | ( | const ITensorInfo * | src0, |
const ITensorInfo * | src1, | ||
ITensorInfo * | dst | ||
) |
Configure the operator.
[in] | src0 | The first source tensor information. |
[in] | src1 | The second source tensor information. With PRelu, this is used as alpha tensor. |
[out] | dst | The output tensor information. |
Definition at line 50 of file CpuElementwise.cpp.
References ARM_COMPUTE_LOG_PARAMS, and arm_compute::test::validation::dst.
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to CpuElementwiseArithmetic::configure()
Definition at line 59 of file CpuElementwise.cpp.
References arm_compute::test::validation::dst, and CpuArithmeticKernel::validate().
Referenced by NEElementwiseMax::validate(), NEElementwiseMin::validate(), and NEElementwiseSquaredDiff::validate().