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 return arm_compute::CLScale::validate(&aclInputInfo,
41 arm_compute::ScaleKernelInfo(aclInterpolationPolicy,
42 arm_compute::BorderMode::REPLICATE,
43 arm_compute::PixelValue(0.f),
51 const arm_compute::CLCompileContext& clCompileContext)
66 input.info()->set_data_layout(aclDataLayout);
67 output.info()->set_data_layout(aclDataLayout);
69 arm_compute::InterpolationPolicy aclInterpolationPolicy =
73 ? arm_compute::SamplingPolicy::CENTER
74 : arm_compute::SamplingPolicy::TOP_LEFT;
78 m_ResizeLayer.configure(clCompileContext,
81 arm_compute::ScaleKernelInfo(aclInterpolationPolicy,
82 arm_compute::BorderMode::REPLICATE,
83 arm_compute::PixelValue(0.f),