From a5daf863ace5749479a3958b039271865110c908 Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Mon, 1 Jul 2019 19:07:20 +0100 Subject: IVGCVSW-3382 Deprecate ResizeBilinear and use Resize with Bilinear method !armnn:1450 Signed-off-by: Aron Virginas-Tar Change-Id: I901f5093933aa8c1cfa05d8af383ef06a1c1f203 --- 1.0/HalPolicy.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '1.0') diff --git a/1.0/HalPolicy.cpp b/1.0/HalPolicy.cpp index 332295d1..dacf3b05 100644 --- a/1.0/HalPolicy.cpp +++ b/1.0/HalPolicy.cpp @@ -1225,26 +1225,27 @@ bool HalPolicy::ConvertResizeBilinear(const Operation& operation, const Model& m const armnn::TensorInfo& inputInfo = input.GetTensorInfo(); const armnn::TensorInfo& outputInfo = GetTensorInfoForOperand(*output); - armnn::ResizeBilinearDescriptor desc; + armnn::ResizeDescriptor desc; + desc.m_Method = armnn::ResizeMethod::Bilinear; desc.m_DataLayout = armnn::DataLayout::NHWC; if (!IsLayerSupportedForAnyBackend(__func__, - armnn::IsResizeBilinearSupported, + armnn::IsResizeSupported, data.m_Backends, inputInfo, - outputInfo)) + outputInfo, + desc)) { return false; } - if (!GetInputScalar(operation, 1, OperandType::INT32, desc.m_TargetHeight, model, data) || !GetInputScalar(operation, 2, OperandType::INT32, desc.m_TargetWidth, model, data)) { return Fail("%s: Operation has invalid inputs", __func__); } - armnn::IConnectableLayer* layer = data.m_Network->AddResizeBilinearLayer(desc); + armnn::IConnectableLayer* layer = data.m_Network->AddResizeLayer(desc); assert(layer != nullptr); -- cgit v1.2.1