15 #include <arm_compute/runtime/NEON/functions/NEElementwiseOperations.h>
26 const arm_compute::TensorInfo aclInput0 = armcomputetensorutils::BuildArmComputeTensorInfo(input0);
27 const arm_compute::TensorInfo aclInput1 = armcomputetensorutils::BuildArmComputeTensorInfo(input1);
28 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
31 activationDescriptor);
36 return arm_compute::NEElementwisePower::validate(&aclInput0,
41 return arm_compute::NEElementwiseSquaredDiff::validate(&aclInput0,
57 arm_compute::ITensor& input1 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
58 arm_compute::ITensor& input2 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[1])->GetTensor();
59 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
69 auto powerLayer = std::make_unique<arm_compute::NEElementwisePower>();
70 powerLayer->configure(&input1, &input2, &output, activationInfo);
71 m_ElementwiseBinaryLayer.reset(powerLayer.release());
76 auto SqDiffLayer = std::make_unique<arm_compute::NEElementwiseSquaredDiff>();
77 SqDiffLayer->configure(&input1, &input2, &output, activationInfo);
78 m_ElementwiseBinaryLayer.reset(SqDiffLayer.release());
89 m_ElementwiseBinaryLayer->run();