From 067112faac5aeb1d28d698115c4c2d5b051e7df1 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Mon, 29 Oct 2018 11:01:09 +0000 Subject: [PATCH] Fixed backend id argument parsing in ExecuteNetwork Change-Id: I99498a633d75a2b4bdcd059627b07beaa9984890 --- tests/ExecuteNetwork/ExecuteNetwork.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ExecuteNetwork/ExecuteNetwork.cpp b/tests/ExecuteNetwork/ExecuteNetwork.cpp index 4ebc998..cfddc38 100644 --- a/tests/ExecuteNetwork/ExecuteNetwork.cpp +++ b/tests/ExecuteNetwork/ExecuteNetwork.cpp @@ -589,7 +589,8 @@ int main(int argc, const char* argv[]) else // Run single test { // Get the preferred order of compute devices. - std::vector computeDevices = vm["compute"].as>(); + std::vector computeDevicesAsStrings = vm["compute"].as>(); + std::vector computeDevices(computeDevicesAsStrings.begin(), computeDevicesAsStrings.end()); // Remove duplicates from the list of compute devices. RemoveDuplicateDevices(computeDevices); -- 2.7.4