17 #include <arm_compute/runtime/NEON/functions/NEArithmeticSubtraction.h>
27 const arm_compute::TensorInfo aclInput0 = armcomputetensorutils::BuildArmComputeTensorInfo(input0);
28 const arm_compute::TensorInfo aclInput1 = armcomputetensorutils::BuildArmComputeTensorInfo(input1);
29 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
32 activationDescriptor);
34 return arm_compute::NEArithmeticSubtraction::validate(&aclInput0,
37 arm_compute::ConvertPolicy::SATURATE,
47 arm_compute::ITensor& input1 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
48 arm_compute::ITensor& input2 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[1])->GetTensor();
49 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
53 auto layer = std::make_unique<arm_compute::NEArithmeticSubtraction>();
54 layer->configure(&input1, &input2, &output, arm_compute::ConvertPolicy::SATURATE, activationInfo);
55 m_SubLayer.reset(layer.release());