33 struct NEArithmeticAddition::Impl
35 const ITensor *src_0{
nullptr };
36 const ITensor *src_1{
nullptr };
37 ITensor *
dst{
nullptr };
38 std::unique_ptr<cpu::CpuAdd> op{
nullptr };
42 : _impl(
std::make_unique<Impl>())
56 _impl->src_0 = input1;
57 _impl->src_1 = input2;
59 _impl->op = std::make_unique<cpu::CpuAdd>();
60 _impl->op->configure(_impl->src_0->info(), _impl->src_1->info(), _impl->dst->info(), policy, act_info);
Basic function to run cpu::kernels::CpuAddKernel.
static Status validate(const ITensorInfo *input1, const ITensorInfo *input2, const ITensorInfo *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of NEArithmeticAddition.
void run() override
Run the kernels contained in the function.
Store the tensor's metadata.
Activation Layer Information class.
Interface for Neon tensor.
void configure(const ITensor *input1, const ITensor *input2, ITensor *output, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Initialise the kernel's inputs, output and conversion policy.
Copyright (c) 2017-2021 Arm Limited.
NEArithmeticAddition & operator=(const NEArithmeticAddition &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
~NEArithmeticAddition()
Default Destructor.
static Status validate(const ITensorInfo *src0, const ITensorInfo *src1, const ITensorInfo *dst, ConvertPolicy policy, const ActivationLayerInfo &act_info=ActivationLayerInfo())
Static function to check if given info will lead to a valid configuration of CpuAdd.
NEArithmeticAddition()
Default Constructor.
ConvertPolicy
Policy to handle overflow.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.