diff options
author | James Ward <james.ward@arm.com> | 2020-09-28 11:56:35 +0100 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2020-09-30 17:13:58 +0000 |
commit | 6d9f5c57fe80b3b3c08294ddd52062e107151a15 (patch) | |
tree | a5aeca515a6f81545d82939ca4031df8677aed12 /tests/InferenceModel.hpp | |
parent | 156113cee2b869810092b42579c31c3b1fd910c5 (diff) | |
download | armnn-6d9f5c57fe80b3b3c08294ddd52062e107151a15.tar.gz |
IVGCVSW-4519 Remove Boost Variant and apply_visitor variant
* replace boost::variant with mapbox::util::variant
* replace boost::apply_visitor with mapbox::util::apply_visitor
* replace boost::get with mapbox::util::get
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I38460cabbcd5e56d4d61151bfe3dcb5681ce696e
Diffstat (limited to 'tests/InferenceModel.hpp')
-rw-r--r-- | tests/InferenceModel.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/InferenceModel.hpp b/tests/InferenceModel.hpp index 0a458c8b64..fd8dedeb29 100644 --- a/tests/InferenceModel.hpp +++ b/tests/InferenceModel.hpp @@ -30,8 +30,8 @@ #include <boost/exception/exception.hpp> #include <boost/exception/diagnostic_information.hpp> #include <boost/program_options.hpp> -#include <boost/variant.hpp> #include <fmt/format.h> +#include <mapbox/variant.hpp> #include <algorithm> #include <iterator> @@ -327,7 +327,7 @@ public: using DataType = TDataType; using Params = InferenceModelInternal::Params; using QuantizationParams = InferenceModelInternal::QuantizationParams; - using TContainer = boost::variant<std::vector<float>, std::vector<int>, std::vector<unsigned char>>; + using TContainer = mapbox::util::variant<std::vector<float>, std::vector<int>, std::vector<unsigned char>>; struct CommandLineOptions { @@ -499,7 +499,7 @@ public: { const unsigned int expectedOutputDataSize = GetOutputSize(i); - boost::apply_visitor([expectedOutputDataSize, i](auto&& value) + mapbox::util::apply_visitor([expectedOutputDataSize, i](auto&& value) { const unsigned int actualOutputDataSize = armnn::numeric_cast<unsigned int>(value.size()); if (actualOutputDataSize < expectedOutputDataSize) |