From 976ad3e257c4a68e809f5a7fe3b7a99bb3f1fba4 Mon Sep 17 00:00:00 2001 From: Ellen Norris-Thompson Date: Wed, 21 Aug 2019 15:21:14 +0100 Subject: IVGCVSW-3613 Refactoring Android NN driver for QuantisedLstm test * Templated AddPoolAndGetData and AddPoolAndSetData to accept different types * Moved scale and offset to arguments of Add*Operand functions Signed-off-by: Ellen Norris-Thompson Change-Id: Iaf4c2d5f4183ea54799bedae20950b23b914a727 --- test/GenericLayerTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/GenericLayerTests.cpp') diff --git a/test/GenericLayerTests.cpp b/test/GenericLayerTests.cpp index 6b51fb93..3b11b726 100644 --- a/test/GenericLayerTests.cpp +++ b/test/GenericLayerTests.cpp @@ -188,7 +188,8 @@ BOOST_AUTO_TEST_CASE(UnsupportedLayerContinueOnFailure) AddOutputOperand(model, hidl_vec{1, 1, 3, 4}); AddOutputOperand(model, hidl_vec{1, 1, 3, 4}, - HalPolicy::OperandType::TENSOR_QUANT8_ASYMM); + HalPolicy::OperandType::TENSOR_QUANT8_ASYMM, + 1.f / 225.f); // Fully connected is supported AddInputOperand(model, hidl_vec{1, 3}); -- cgit v1.2.1