diff options
Diffstat (limited to 'src/armnn/test/QuantizerTest.cpp')
-rw-r--r-- | src/armnn/test/QuantizerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/armnn/test/QuantizerTest.cpp b/src/armnn/test/QuantizerTest.cpp index fcce208c59..f7723bd0c0 100644 --- a/src/armnn/test/QuantizerTest.cpp +++ b/src/armnn/test/QuantizerTest.cpp @@ -997,15 +997,15 @@ BOOST_AUTO_TEST_CASE(QuantizeMerger) const OriginsDescriptor& mergerDescriptor, const char* name = nullptr) { - std::pair<int, float> expectedValues = ComputeQAsymmParams(8, m_Min, m_Max); + std::pair<float, int> expectedValues = ComputeQAsymmParams(8, m_Min, m_Max); TensorInfo info = layer->GetOutputSlot(0).GetTensorInfo(); BOOST_TEST((info.GetDataType() == DataType::QuantisedAsymm8)); - BOOST_TEST((info.GetQuantizationOffset() == expectedValues.first)); + BOOST_TEST((info.GetQuantizationOffset() == expectedValues.second)); - BOOST_CHECK_CLOSE(info.GetQuantizationScale(), expectedValues.second, 0.000001f); + BOOST_CHECK_CLOSE(info.GetQuantizationScale(), expectedValues.first, 0.000001f); } private: |