16 #include <arm_compute/runtime/NEON/functions/NEPoolingLayer.h>
20 using namespace armcomputetensorutils;
26 const arm_compute::TensorInfo aclInputInfo =
27 BuildArmComputeTensorInfo(input, descriptor.
m_DataLayout);
28 const arm_compute::TensorInfo aclOutputInfo =
29 BuildArmComputeTensorInfo(output, descriptor.
m_DataLayout);
31 arm_compute::PoolingLayerInfo layerInfo = BuildArmComputePoolingLayerInfo(descriptor);
33 return arm_compute::NEPoolingLayer::validate(&aclInputInfo, &aclOutputInfo, layerInfo);
48 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
49 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
52 input.info()->set_data_layout(aclDataLayout);
53 output.info()->set_data_layout(aclDataLayout);
55 arm_compute::PoolingLayerInfo layerInfo = BuildArmComputePoolingLayerInfo(
m_Data.
m_Parameters);
57 auto layer = std::make_unique<arm_compute::NEPoolingLayer>();
58 layer->configure(&input, &output, layerInfo);
59 m_PoolingLayer.reset(layer.release());
65 m_PoolingLayer->run();