From 535607ddba89b24cf33f431cdea7128ee01929ed Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Wed, 3 Jul 2019 15:46:15 +0100 Subject: Fix bug in hal_1_0::HalPolicy::ConvertResizeBilinear * Fix order in which target width and height parameters are read Signed-off-by: Aron Virginas-Tar Change-Id: I2430abc50f4952a94024d55f8e024cd282d4e0ad --- 1.0/HalPolicy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '1.0') diff --git a/1.0/HalPolicy.cpp b/1.0/HalPolicy.cpp index dacf3b05..a1a1ed9e 100644 --- a/1.0/HalPolicy.cpp +++ b/1.0/HalPolicy.cpp @@ -1239,8 +1239,8 @@ bool HalPolicy::ConvertResizeBilinear(const Operation& operation, const Model& m return false; } - if (!GetInputScalar(operation, 1, OperandType::INT32, desc.m_TargetHeight, model, data) || - !GetInputScalar(operation, 2, OperandType::INT32, desc.m_TargetWidth, model, data)) + if (!GetInputScalar(operation, 1, OperandType::INT32, desc.m_TargetWidth, model, data) || + !GetInputScalar(operation, 2, OperandType::INT32, desc.m_TargetHeight, model, data)) { return Fail("%s: Operation has invalid inputs", __func__); } -- cgit v1.2.1