14 #include <arm_compute/runtime/NEON/functions/NEPixelWiseMultiplication.h>
24 const arm_compute::TensorInfo aclInput1 = armcomputetensorutils::BuildArmComputeTensorInfo(input0);
25 const arm_compute::TensorInfo aclInput2 = armcomputetensorutils::BuildArmComputeTensorInfo(input1);
26 const arm_compute::TensorInfo aclOutput = armcomputetensorutils::BuildArmComputeTensorInfo(output);
29 arm_compute::ConvertPolicy::SATURATE :
30 arm_compute::ConvertPolicy::WRAP;
33 activationDescriptor);
38 return arm_compute::NEPixelWiseMultiplication::validate(&aclInput1,
43 arm_compute::RoundingPolicy::TO_ZERO,
53 arm_compute::ITensor& input1 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
54 arm_compute::ITensor& input2 = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[1])->GetTensor();
55 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
59 arm_compute::ConvertPolicy::SATURATE :
60 arm_compute::ConvertPolicy::WRAP;
67 auto layer = std::make_unique<arm_compute::NEPixelWiseMultiplication>();
68 layer->configure(&input1,
73 arm_compute::RoundingPolicy::TO_ZERO,
75 m_PixelWiseMultiplication.reset(layer.release());
81 m_PixelWiseMultiplication->run();