diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-08 12:00:32 +0100 |
---|---|---|
committer | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-11 18:24:18 +0100 |
commit | 80c6b146046252af153af27025a28fb59d33c5e6 (patch) | |
tree | 82cc16369d0a163fc4f97a25af13c4d792faecf8 /tests/DeepSpeechV1Database.hpp | |
parent | 77062ca6f288830a21e4ff4237059623eba25fa2 (diff) | |
download | armnn-80c6b146046252af153af27025a28fb59d33c5e6.tar.gz |
IVGCVSW-5299 Remove some boost::numeric_cast from armnn/tests
* Replaced with armnn/utility/NumericCast.hpp
* Removed combinations without float implementation in NumericCast.hpp
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: Ia4ec605f063cdb0071fff302ef48c610f9f9505e
Diffstat (limited to 'tests/DeepSpeechV1Database.hpp')
-rw-r--r-- | tests/DeepSpeechV1Database.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/DeepSpeechV1Database.hpp b/tests/DeepSpeechV1Database.hpp index fa7dda0d76..5e721c3cb9 100644 --- a/tests/DeepSpeechV1Database.hpp +++ b/tests/DeepSpeechV1Database.hpp @@ -11,8 +11,7 @@ #include <vector> #include <armnn/TypesUtils.hpp> - -#include <boost/numeric/conversion/cast.hpp> +#include <armnn/utility/NumericCast.hpp> #include <array> #include <string> @@ -80,7 +79,7 @@ inline auto ParseDataArray<armnn::DataType::QAsymmU8>(std::istream& stream, return ParseArrayImpl<uint8_t>(stream, [&quantizationScale, &quantizationOffset](const std::string & s) { - return boost::numeric_cast<uint8_t>( + return armnn::numeric_cast<uint8_t>( armnn::Quantize<uint8_t>(std::stof(s), quantizationScale, quantizationOffset)); |