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/DepthToSpaceTestImpl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/backends/backendsCommon/test/layerTests/DepthToSpaceTestImpl.cpp') diff --git a/src/backends/backendsCommon/test/layerTests/DepthToSpaceTestImpl.cpp b/src/backends/backendsCommon/test/layerTests/DepthToSpaceTestImpl.cpp index e21a4b64f8..4e8c938823 100644 --- a/src/backends/backendsCommon/test/layerTests/DepthToSpaceTestImpl.cpp +++ b/src/backends/backendsCommon/test/layerTests/DepthToSpaceTestImpl.cpp @@ -5,7 +5,7 @@ #include "DepthToSpaceTestImpl.hpp" -#include +#include #include @@ -44,10 +44,12 @@ LayerTestResult DepthToSpaceTestImpl( outputInfo.SetQuantizationOffset(qOffset); } - boost::multi_array input = MakeTensor(inputInfo, QuantizedVector(qScale, qOffset, inputData)); + boost::multi_array input = + MakeTensor(inputInfo, armnnUtils::QuantizedVector(inputData, qScale, qOffset)); LayerTestResult result(outputInfo); - result.outputExpected = MakeTensor(outputInfo, QuantizedVector(qScale, qOffset, expectedOutputData)); + result.outputExpected = + MakeTensor(outputInfo, armnnUtils::QuantizedVector(expectedOutputData, qScale, qOffset)); std::unique_ptr inputHandle = workloadFactory.CreateTensorHandle(inputInfo); std::unique_ptr outputHandle = workloadFactory.CreateTensorHandle(outputInfo); -- cgit v1.2.1