aboutsummaryrefslogtreecommitdiff
path: root/tests/MobileNetSsdInferenceTest.hpp
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2020-09-28 11:56:35 +0100
committerJames Ward <james.ward@arm.com>2020-09-30 17:13:58 +0000
commit6d9f5c57fe80b3b3c08294ddd52062e107151a15 (patch)
treea5aeca515a6f81545d82939ca4031df8677aed12 /tests/MobileNetSsdInferenceTest.hpp
parent156113cee2b869810092b42579c31c3b1fd910c5 (diff)
downloadarmnn-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/MobileNetSsdInferenceTest.hpp')
-rw-r--r--tests/MobileNetSsdInferenceTest.hpp12
1 files changed, 8 insertions, 4 deletions
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<float>& output1 = boost::get<std::vector<float>>(this->GetOutputs()[0]); // bounding boxes
+ // bounding boxes
+ const std::vector<float>& output1 = mapbox::util::get<std::vector<float>>(this->GetOutputs()[0]);
ARMNN_ASSERT(output1.size() == k_OutputSize1);
- const std::vector<float>& output2 = boost::get<std::vector<float>>(this->GetOutputs()[1]); // classes
+ // classes
+ const std::vector<float>& output2 = mapbox::util::get<std::vector<float>>(this->GetOutputs()[1]);
ARMNN_ASSERT(output2.size() == k_OutputSize2);
- const std::vector<float>& output3 = boost::get<std::vector<float>>(this->GetOutputs()[2]); // scores
+ // scores
+ const std::vector<float>& output3 = mapbox::util::get<std::vector<float>>(this->GetOutputs()[2]);
ARMNN_ASSERT(output3.size() == k_OutputSize3);
- const std::vector<float>& output4 = boost::get<std::vector<float>>(this->GetOutputs()[3]); // valid detections
+ // valid detections
+ const std::vector<float>& output4 = mapbox::util::get<std::vector<float>>(this->GetOutputs()[3]);
ARMNN_ASSERT(output4.size() == k_OutputSize4);
const size_t numDetections = boost::numeric_cast<size_t>(output4[0]);