17 using namespace armcomputetensorutils;
21 const arm_compute::CLCompileContext& clCompileContext)
38 auto powerLayer = std::make_unique<arm_compute::CLElementwisePower>();
39 powerLayer->configure(clCompileContext, &input0, &input1, &output, activationInfo);
40 m_ElementwiseBinaryLayer.reset(powerLayer.release());
45 auto SqDiffLayer = std::make_unique<arm_compute::CLElementwiseSquaredDiff>();
46 SqDiffLayer->configure(clCompileContext, &input0, &input1, &output, activationInfo);
47 m_ElementwiseBinaryLayer.reset(SqDiffLayer.release());
57 if (m_ElementwiseBinaryLayer)
60 m_ElementwiseBinaryLayer->run();
70 const arm_compute::TensorInfo aclInput0Info = BuildArmComputeTensorInfo(input0);
71 const arm_compute::TensorInfo aclInput1Info = BuildArmComputeTensorInfo(input1);
72 const arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
75 activationDescriptor);
80 return arm_compute::CLElementwisePower::validate(&aclInput0Info,
85 return arm_compute::CLElementwiseSquaredDiff::validate(&aclInput0Info,