diff options
author | Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> | 2019-07-03 15:46:15 +0100 |
---|---|---|
committer | Áron Virginás-Tar <aron.virginas-tar@arm.com> | 2019-07-03 14:55:09 +0000 |
commit | 535607ddba89b24cf33f431cdea7128ee01929ed (patch) | |
tree | 2d053a3cfdf7671b075990a9d6b5e97e7fc8079c | |
parent | a5daf863ace5749479a3958b039271865110c908 (diff) | |
download | android-nn-driver-535607ddba89b24cf33f431cdea7128ee01929ed.tar.gz |
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 <Aron.Virginas-Tar@arm.com>
Change-Id: I2430abc50f4952a94024d55f8e024cd282d4e0ad
-rw-r--r-- | 1.0/HalPolicy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<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)) + if (!GetInputScalar<hal_1_0::HalPolicy>(operation, 1, OperandType::INT32, desc.m_TargetWidth, model, data) || + !GetInputScalar<hal_1_0::HalPolicy>(operation, 2, OperandType::INT32, desc.m_TargetHeight, model, data)) { return Fail("%s: Operation has invalid inputs", __func__); } |