From 48623a0f6f4681ce0d9525b1587b7f96bfd58519 Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Tue, 22 Oct 2019 10:00:28 +0100 Subject: IVGCVSW-4018 Move QuantizeHelper.hpp to armnnUtils * Moved QuntizeHelper.hpp to armnnUtils * Reordered parameters for QuantizedVector and added default values for qScale and qOffset to make life easier when using the function for non-quantized types such as Float16 Signed-off-by: Aron Virginas-Tar Change-Id: I28c263dfa425f1316feccb4116839a84f5d568e5 --- .../backendsCommon/test/layerTests/SpaceToDepthTestImpl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/backends/backendsCommon/test/layerTests/SpaceToDepthTestImpl.cpp') diff --git a/src/backends/backendsCommon/test/layerTests/SpaceToDepthTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/SpaceToDepthTestImpl.cpp index 48e157dd8d..05413230dd 100644 --- a/src/backends/backendsCommon/test/layerTests/SpaceToDepthTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/SpaceToDepthTestImpl.cpp @@ -6,6 +6,7 @@ #include "SpaceToDepthTestImpl.hpp" #include +#include #include #include @@ -56,10 +57,12 @@ LayerTestResult SpaceToDepthTestImpl( outputTensorInfo.SetQuantizationOffset(qOffset); } - boost::multi_array input = MakeTensor(inputTensorInfo, QuantizedVector(qScale, qOffset, inputData)); + boost::multi_array input = MakeTensor(inputTensorInfo, + armnnUtils::QuantizedVector(inputData, qScale, qOffset)); LayerTestResult ret(outputTensorInfo); - ret.outputExpected = MakeTensor(outputTensorInfo, QuantizedVector(qScale, qOffset, outputExpectedData)); + ret.outputExpected = MakeTensor(outputTensorInfo, + armnnUtils::QuantizedVector(outputExpectedData, qScale, qOffset)); std::unique_ptr inputHandle = workloadFactory.CreateTensorHandle(inputTensorInfo); std::unique_ptr outputHandle = workloadFactory.CreateTensorHandle(outputTensorInfo); -- cgit v1.2.1