33 struct NEArithmeticSubtraction::Impl
35 const ITensor *src_0{
nullptr };
36 const ITensor *src_1{
nullptr };
37 ITensor *
dst{
nullptr };
38 std::unique_ptr<cpu::CpuSub> 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::CpuSub>();
60 _impl->op->configure(input1->
info(), input2->
info(), output->
info(), policy, act_info);
~NEArithmeticSubtraction()
Default Destructor.
NEArithmeticSubtraction()
Default Constructor.
void run() override
Run the kernels contained in the function.
Store the tensor's metadata.
Activation Layer Information class.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
Basic function to run cpu::kernels::CpuSubKernel.
virtual ITensorInfo * info() const =0
Interface to be implemented by the child class to return the tensor's metadata.
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.
NEArithmeticSubtraction & operator=(const NEArithmeticSubtraction &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
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 CpuSub.
ConvertPolicy
Policy to handle overflow.
void add_tensor(int id, ITensor *tensor)
Add tensor to the pack.
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 NEArithmeticSubtraction...