15 #include <arm_compute/runtime/NEON/functions/NEArithmeticAddition.h>
25 const arm_compute::TensorInfo aclInput0 = armcomputetensorutils::BuildArmComputeTensorInfo(input0);
26 const arm_compute::TensorInfo aclInput1 = armcomputetensorutils::BuildArmComputeTensorInfo(input1);
27 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
30 activationDescriptor);
32 return arm_compute::NEArithmeticAddition::validate(&aclInput0,
35 arm_compute::ConvertPolicy::SATURATE,
46 arm_compute::ITensor& input1 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
47 arm_compute::ITensor& input2 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[1])->GetTensor();
48 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
52 auto layer = std::make_unique<arm_compute::NEArithmeticAddition>();
53 layer->configure(&input1, &input2, &output, arm_compute::ConvertPolicy::SATURATE, activationInfo);
54 m_AddLayer.reset(layer.release());