aboutsummaryrefslogtreecommitdiff
path: root/test/Convolution2D.hpp
diff options
context:
space:
mode:
authorEllen Norris-Thompson <ellen.norris-thompson@arm.com>2019-08-21 15:21:14 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-08-22 08:45:13 +0100
commit976ad3e257c4a68e809f5a7fe3b7a99bb3f1fba4 (patch)
tree683a03f831a8d4706ab2a34d155b4b9c3bd0fc44 /test/Convolution2D.hpp
parent1ba9989c4d4fe152d2cb02c83c2da1c18b6aaf37 (diff)
downloadandroid-nn-driver-976ad3e257c4a68e809f5a7fe3b7a99bb3f1fba4.tar.gz
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 <ellen.norris-thompson@arm.com> Change-Id: Iaf4c2d5f4183ea54799bedae20950b23b914a727
Diffstat (limited to 'test/Convolution2D.hpp')
-rw-r--r--test/Convolution2D.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Convolution2D.hpp b/test/Convolution2D.hpp
index 46b46549..180f57e2 100644
--- a/test/Convolution2D.hpp
+++ b/test/Convolution2D.hpp
@@ -102,7 +102,7 @@ void PaddingTestImpl(android::nn::PaddingScheme paddingScheme, bool fp16Enabled
AddPoolAndSetData(6, request, indata);
// add memory for the output
- android::sp<IMemory> outMemory = AddPoolAndGetData(outSize, request);
+ android::sp<IMemory> outMemory = AddPoolAndGetData<float>(outSize, request);
float* outdata = reinterpret_cast<float*>(static_cast<void*>(outMemory->getPointer()));
// run the execution