From 6d9f5c57fe80b3b3c08294ddd52062e107151a15 Mon Sep 17 00:00:00 2001 From: James Ward Date: Mon, 28 Sep 2020 11:56:35 +0100 Subject: 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 Change-Id: I38460cabbcd5e56d4d61151bfe3dcb5681ce696e --- tests/MobileNetSsdInferenceTest.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/MobileNetSsdInferenceTest.hpp') diff --git a/tests/MobileNetSsdInferenceTest.hpp b/tests/MobileNetSsdInferenceTest.hpp index e02a4acedd..f426ed2ae4 100644 --- a/tests/MobileNetSsdInferenceTest.hpp +++ b/tests/MobileNetSsdInferenceTest.hpp @@ -37,16 +37,20 @@ public: { armnn::IgnoreUnused(options); - const std::vector& output1 = boost::get>(this->GetOutputs()[0]); // bounding boxes + // bounding boxes + const std::vector& output1 = mapbox::util::get>(this->GetOutputs()[0]); ARMNN_ASSERT(output1.size() == k_OutputSize1); - const std::vector& output2 = boost::get>(this->GetOutputs()[1]); // classes + // classes + const std::vector& output2 = mapbox::util::get>(this->GetOutputs()[1]); ARMNN_ASSERT(output2.size() == k_OutputSize2); - const std::vector& output3 = boost::get>(this->GetOutputs()[2]); // scores + // scores + const std::vector& output3 = mapbox::util::get>(this->GetOutputs()[2]); ARMNN_ASSERT(output3.size() == k_OutputSize3); - const std::vector& output4 = boost::get>(this->GetOutputs()[3]); // valid detections + // valid detections + const std::vector& output4 = mapbox::util::get>(this->GetOutputs()[3]); ARMNN_ASSERT(output4.size() == k_OutputSize4); const size_t numDetections = boost::numeric_cast(output4[0]); -- cgit v1.2.1