From 24af8b29c578b8819663a4bdc0828323123c2718 Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Fri, 22 May 2020 08:34:16 +0100 Subject: IVGCVSW-4453 Add Support for ANEURALNETWORKS_QLSTM to HAL 1.3 Driver * Input 30 for QLSTM is zero point of the hidden state, ANEURALNETWORKS_INT32 * Input 31 for QLSTM is the scale of the hidden state, ANEURALNETWORKS_FLOAT32 Signed-off-by: Sadik Armagan Change-Id: I1c6304fa4772895ce57286b58b2c3363c25c38e2 --- ConversionUtils_1_3.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConversionUtils_1_3.hpp b/ConversionUtils_1_3.hpp index 4714b84b..dada6704 100644 --- a/ConversionUtils_1_3.hpp +++ b/ConversionUtils_1_3.hpp @@ -331,8 +331,8 @@ bool ConvertQuantizedLstm(const HalOperation& operation, const HalModel& model, !GetInputScalar(operation, 27, HalOperandType::FLOAT32, matMulForgetGate, model, data) || !GetInputScalar(operation, 28, HalOperandType::FLOAT32, matMulCellGate, model, data) || !GetInputScalar(operation, 29, HalOperandType::FLOAT32, matMulOutputGate, model, data) || - !GetInputScalar(operation, 30, HalOperandType::FLOAT32, projInputScale, model, data) || - !GetInputScalar(operation, 31, HalOperandType::FLOAT32, projInputZeroPoint, model, data)) + !GetInputScalar(operation, 30, HalOperandType::INT32, projInputZeroPoint, model, data) || + !GetInputScalar(operation, 31, HalOperandType::FLOAT32, projInputScale, model, data)) { return Fail("%s: Operation has invalid scalar inputs", __func__); } -- cgit v1.2.1