aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Jackson <matthew.jackson@arm.com>2019-09-05 15:55:55 +0100
committerMatthew Jackson <matthew.jackson@arm.com>2019-09-06 12:09:30 +0000
commit07882f1750f0ff83a955fe8e9c363ca26059f084 (patch)
treef2409de77b3388ffcebee5a320f1158d26b7e390 /tests
parent9199e58813ef262fefdf70ec992b5192b5a05559 (diff)
downloadarmnn-07882f1750f0ff83a955fe8e9c363ca26059f084.tar.gz
IVGCVSW-3816 Make compute option required in ExecuteNetwork
Signed-off-by: Matthew Jackson <matthew.jackson@arm.com> Change-Id: If13b731d95c79e3e296d7dfc6c1ac94bf3a93ff3
Diffstat (limited to 'tests')
-rw-r--r--tests/ExecuteNetwork/ExecuteNetwork.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetwork.cpp b/tests/ExecuteNetwork/ExecuteNetwork.cpp
index 828d24985b..d97a19928c 100644
--- a/tests/ExecuteNetwork/ExecuteNetwork.cpp
+++ b/tests/ExecuteNetwork/ExecuteNetwork.cpp
@@ -34,7 +34,7 @@ int main(int argc, const char* argv[])
size_t subgraphId = 0;
- const std::string backendsMessage = "Which device to run layers on by default. Possible choices: "
+ const std::string backendsMessage = "REQUIRED: Which device to run layers on by default. Possible choices: "
+ armnn::BackendRegistryInstance().GetBackendIdsAsString();
po::options_description desc("Options");
@@ -42,6 +42,8 @@ int main(int argc, const char* argv[])
{
desc.add_options()
("help", "Display usage information")
+ ("compute,c", po::value<std::vector<std::string>>()->multitoken()->required(),
+ backendsMessage.c_str())
("test-cases,t", po::value(&testCasesFile), "Path to a CSV file containing test cases to run. "
"If set, further parameters -- with the exception of compute device and concurrency -- will be ignored, "
"as they are expected to be defined in the file for each test in particular.")
@@ -52,8 +54,6 @@ int main(int argc, const char* argv[])
"tensorflow-text.")
("model-path,m", po::value(&modelPath)->required(), "Path to model file, e.g. .armnn, .caffemodel, "
".prototxt, .tflite, .onnx")
- ("compute,c", po::value<std::vector<std::string>>()->multitoken(),
- backendsMessage.c_str())
("dynamic-backends-path,b", po::value(&dynamicBackendsPath),
"Path where to load any available dynamic backend from. "
"If left empty (the default), dynamic backends will not be used.")