From 813f23049d73177edfc1f1cff71147c39f4b695e Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Tue, 19 May 2020 14:10:30 +0100 Subject: IVGCVSW-4453 Add Support for ANEURALNETWORKS_QLSTM to HAL 1.3 Driver * Add QLSTM support for Android NN Driver * Add overrideOutputInfo parameter to SetupAndTrackLayerOutputSlot * Add optional condition to GetInputScalar * Refactor Quantized 16 Bit LSTM impl Change-Id: Ie8fa98ad5ee4a62174ef91ca80f1df62b7fde937 Signed-off-by: Keith Davis Signed-off-by: Sadik Armagan --- 1.3/HalPolicy.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '1.3/HalPolicy.cpp') diff --git a/1.3/HalPolicy.cpp b/1.3/HalPolicy.cpp index b2b8a860..1077b787 100644 --- a/1.3/HalPolicy.cpp +++ b/1.3/HalPolicy.cpp @@ -103,8 +103,10 @@ bool HalPolicy::ConvertOperation(const Operation& operation, const Model& model, return ConvertPrelu(operation, model, data); case V1_3::OperationType::QUANTIZE: return ConvertQuantize(operation, model, data); - case V1_3::OperationType::QUANTIZED_16BIT_LSTM: + case V1_3::OperationType::QUANTIZED_LSTM: return ConvertQuantizedLstm(operation, model, data); + case V1_3::OperationType::QUANTIZED_16BIT_LSTM: + return ConvertQuantized16BitLstm(operation, model, data); case V1_3::OperationType::RELU: return ConvertReLu(operation, model, data); case V1_3::OperationType::RELU1: @@ -370,6 +372,12 @@ bool HalPolicy::ConvertQuantizedLstm(const Operation& operation, const Model& mo return ::ConvertQuantizedLstm(operation, model, data); } +bool HalPolicy::ConvertQuantized16BitLstm(const Operation& operation, const Model& model, ConversionData& data) +{ + ALOGV("hal_1_3::HalPolicy::ConvertQuantized16BitLstm()"); + return ::ConvertQuantized16BitLstm(operation, model, data); +} + bool HalPolicy::ConvertReLu(const Operation& operation, const Model& model, ConversionData& data) { ALOGV("hal_1_3::HalPolicy::ConvertReLu()"); -- cgit v1.2.1