From 1555cbd1e0ea457e9ab05ef22119fd80cdd3bd07 Mon Sep 17 00:00:00 2001 From: Francis Murtagh Date: Tue, 8 Oct 2019 14:47:46 +0100 Subject: IVGCVSW-3669 Fix bug parsing multiple InputShapes in ExecuteNetwork * Change shape separator from semicolon, a command separator, to colon. * Update ExecuteNetwork --help prompts. Change-Id: I6c6d18007cd219482d8187d69962944b833e302e Signed-off-by: Francis Murtagh --- tests/ExecuteNetwork/ExecuteNetwork.cpp | 6 +++--- tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/ExecuteNetwork/ExecuteNetwork.cpp b/tests/ExecuteNetwork/ExecuteNetwork.cpp index 2309a8b0eb..1c1fa10031 100644 --- a/tests/ExecuteNetwork/ExecuteNetwork.cpp +++ b/tests/ExecuteNetwork/ExecuteNetwork.cpp @@ -67,12 +67,12 @@ int main(int argc, const char* argv[]) ("subgraph-number,x", po::value(&subgraphId)->default_value(0), "Id of the subgraph to be executed." "Defaults to 0") ("input-tensor-shape,s", po::value(&inputTensorShapes), - "The shape of the input tensors in the network as a flat array of integers separated by comma. " - "Several shapes can be passed separating them by semicolon. " + "The shape of the input tensors in the network as a flat array of integers separated by comma." + "Several shapes can be passed by separating them with a colon (:)." "This parameter is optional, depending on the network.") ("input-tensor-data,d", po::value(&inputTensorDataFilePaths), "Path to files containing the input data as a flat array separated by whitespace. " - "Several paths can be passed separating them by comma.") + "Several paths can be passed by separating them with a comma.") ("input-type,y",po::value(&inputTypes), "The type of the input tensors in the network separated by comma. " "If unset, defaults to \"float\" for all defined inputs. " "Accepted values (float, int or qasymm8)") diff --git a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp index eefe628201..972939bb98 100644 --- a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp +++ b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp @@ -464,7 +464,7 @@ int RunTest(const std::string& format, std::string modelFormat = boost::trim_copy(format); std::string modelPath = boost::trim_copy(path); std::vector inputNamesVector = ParseStringList(inputNames, ","); - std::vector inputTensorShapesVector = ParseStringList(inputTensorShapesStr, ";"); + std::vector inputTensorShapesVector = ParseStringList(inputTensorShapesStr, ":"); std::vector inputTensorDataFilePathsVector = ParseStringList( inputTensorDataFilePaths, ","); std::vector outputNamesVector = ParseStringList(outputNames, ","); -- cgit v1.2.1