aboutsummaryrefslogtreecommitdiff
path: root/1.0
diff options
context:
space:
mode:
authorAron Virginas-Tar <Aron.Virginas-Tar@arm.com>2019-07-01 19:07:20 +0100
committerÁron Virginás-Tar <aron.virginas-tar@arm.com>2019-07-02 09:38:17 +0000
commita5daf863ace5749479a3958b039271865110c908 (patch)
tree09fa481ef52dbeacfb65e6492e34b42d0e5761c1 /1.0
parentd7c8eb93cb880e4bdc2fe721b22eeb1fa99bcf42 (diff)
downloadandroid-nn-driver-a5daf863ace5749479a3958b039271865110c908.tar.gz
IVGCVSW-3382 Deprecate ResizeBilinear and use Resize with Bilinear method
!armnn:1450 Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I901f5093933aa8c1cfa05d8af383ef06a1c1f203
Diffstat (limited to '1.0')
-rw-r--r--1.0/HalPolicy.cpp11
1 files changed, 6 insertions, 5 deletions
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<hal_1_0::HalPolicy>(operation, 1, OperandType::INT32, desc.m_TargetHeight, model, data) ||
!GetInputScalar<hal_1_0::HalPolicy>(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);