24.02.1
|
Basic function to run kernels::CpuAddMulAddKernel. More...
#include <CpuAddMulAdd.h>
Public Member Functions | |
void | configure (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *bn_mul, const ITensorInfo *bn_add, ITensorInfo *add_output, ITensorInfo *final_output, ConvertPolicy policy, const ActivationLayerInfo &act_info) |
Initialize the operator's inputs and outputs. More... | |
void | run (ITensorPack &tensors) override |
Run the kernels contained in the function. More... | |
experimental::MemoryRequirements | workspace () const override |
Return the memory requirements required by the workspace. 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... | |
Public Member Functions inherited from IOperator | |
virtual | ~IOperator ()=default |
Destructor. More... | |
Static Public Member Functions | |
static Status | validate (const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *bn_mul, const ITensorInfo *bn_add, const ITensorInfo *add_output, const ITensorInfo *final_output, ConvertPolicy policy, const ActivationLayerInfo &act_info) |
Static function to check if given info will lead to a valid configuration. More... | |
Basic function to run kernels::CpuAddMulAddKernel.
Definition at line 37 of file CpuAddMulAdd.h.
void configure | ( | const ITensorInfo * | input1, |
const ITensorInfo * | input2, | ||
const ITensorInfo * | bn_mul, | ||
const ITensorInfo * | bn_add, | ||
ITensorInfo * | add_output, | ||
ITensorInfo * | final_output, | ||
ConvertPolicy | policy, | ||
const ActivationLayerInfo & | act_info | ||
) |
Initialize the operator's inputs and outputs.
Similar to NEAddMulAdd::configure()
Definition at line 38 of file CpuAddMulAdd.cpp.
References arm_compute::test::validation::act_info, ARM_COMPUTE_LOG_PARAMS, CpuDequantize::configure(), arm_compute::test::validation::data_type, ITensorInfo::data_type(), arm_compute::is_data_type_quantized(), arm_compute::offset_int_vec(), arm_compute::experimental::Temporary, and TensorInfo::total_size().
|
overridevirtual |
Run the kernels contained in the function.
[in] | tensors | Vector that contains the tensors to operate on. |
Reimplemented from INEOperator.
Definition at line 104 of file CpuAddMulAdd.cpp.
References arm_compute::ACL_DST_0, arm_compute::ACL_DST_1, arm_compute::ACL_SRC_0, arm_compute::ACL_SRC_1, arm_compute::ACL_SRC_2, arm_compute::ACL_SRC_3, arm_compute::test::validation::data_type, ITensorInfo::data_type(), Window::DimY, Scheduler::get(), CpuAuxTensorHandler::get(), ITensorPack::get_const_tensor(), ITensorPack::get_tensor(), ITensor::info(), arm_compute::is_data_type_quantized(), arm_compute::offset_int_vec(), CpuDequantize::run(), and IScheduler::schedule_op().
|
static |
Static function to check if given info will lead to a valid configuration.
Similar to CpuAddMulAdd::configure()
Definition at line 76 of file CpuAddMulAdd.cpp.
References arm_compute::test::validation::act_info, ARM_COMPUTE_RETURN_ON_ERROR, ICloneable< T >::clone(), arm_compute::test::validation::data_type, ITensorInfo::data_type(), arm_compute::F32, arm_compute::is_data_type_quantized(), CpuDequantize::validate(), and CpuAddMulAddKernel::validate().
Referenced by NEAddMulAdd::validate().
|
overridevirtual |
Return the memory requirements required by the workspace.
Reimplemented from INEOperator.
Definition at line 144 of file CpuAddMulAdd.cpp.