aboutsummaryrefslogtreecommitdiff
path: root/1.0/HalPolicy.cpp
diff options
context:
space:
mode:
Diffstat (limited to '1.0/HalPolicy.cpp')
-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);