17 using namespace armnn::armcomputetensorutils;
26 arm_compute::TensorInfo aclInputInfo = BuildArmComputeTensorInfo(input);
27 arm_compute::TensorInfo aclOutputInfo = BuildArmComputeTensorInfo(output);
30 aclInputInfo.set_data_layout(aclDataLayout);
31 aclOutputInfo.set_data_layout(aclDataLayout);
33 arm_compute::InterpolationPolicy aclInterpolationPolicy =
36 arm_compute::SamplingPolicy samplingPolicy = descriptor.
m_HalfPixelCenters ? arm_compute::SamplingPolicy::CENTER :
37 arm_compute::SamplingPolicy::TOP_LEFT;
39 bool usePadding =
false;
41 return arm_compute::NEScale::validate(&aclInputInfo,
43 arm_compute::ScaleKernelInfo(aclInterpolationPolicy,
44 arm_compute::BorderMode::REPLICATE,
45 arm_compute::PixelValue(0.f),
64 arm_compute::ITensor& input = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Inputs[0])->GetTensor();
65 arm_compute::ITensor& output = PolymorphicDowncast<IAclTensorHandle*>(
m_Data.
m_Outputs[0])->GetTensor();
68 input.info()->set_data_layout(aclDataLayout);
69 output.info()->set_data_layout(aclDataLayout);
71 arm_compute::InterpolationPolicy aclInterpolationPolicy =
75 ? arm_compute::SamplingPolicy::CENTER
76 : arm_compute::SamplingPolicy::TOP_LEFT;
78 bool usePadding =
false;
80 m_ResizeLayer.configure(&input,
82 arm_compute::ScaleKernelInfo(aclInterpolationPolicy,
83 arm_compute::BorderMode::REPLICATE,
84 arm_compute::PixelValue(0.f),