aboutsummaryrefslogtreecommitdiff
path: root/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
diff options
context:
space:
mode:
authorColm Donelan <Colm.Donelan@arm.com>2021-10-12 15:06:19 +0100
committerMatthew Sloyan <matthew.sloyan@arm.com>2021-10-18 10:42:15 +0000
commit3cff15a5d8797d0afe5d5b1cb3ff0e5b7d1cd6c9 (patch)
tree47a203daa2fee1f7afc3e79787cf2e99c52473da /tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
parentb4128b4c8c8c717225c83debc5f957d37d6513fa (diff)
downloadarmnn-3cff15a5d8797d0afe5d5b1cb3ff0e5b7d1cd6c9.tar.gz
IVGCVSW-5879 Pass the execute network parameters to the TfLiteDelegate.
* Introduce a mechanism to construct a DelegateOptions from an ExecuteNetworkParams. * Modify ExecuteNetwork to use this constructed DelegateOptions. Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: Ied663a1e00ac3eece42244ed313ddafd6d2ce078
Diffstat (limited to 'tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp')
-rw-r--r--tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
index b1c87d088a..8ee66cf64b 100644
--- a/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
+++ b/tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp
@@ -242,7 +242,8 @@ ProgramOptions::ProgramOptions() : m_CxxOptions{"ExecuteNetwork",
("l,dequantize-output",
"If this option is enabled, all quantized outputs will be dequantized to float. "
"If unset, default to not get dequantized. "
- "Accepted values (true or false)",
+ "Accepted values (true or false)"
+ " (Not available when executing ArmNNTfLiteDelegate or TfliteInterpreter)",
cxxopts::value<bool>(m_ExNetParams.m_DequantizeOutput)->default_value("false")->implicit_value("true"))
("p,print-intermediate-layers",
@@ -261,9 +262,9 @@ ProgramOptions::ProgramOptions() : m_CxxOptions{"ExecuteNetwork",
("q,quantize-input",
"If this option is enabled, all float inputs will be quantized as appropriate for the model's inputs. "
- "If unset, default to not quantized. Accepted values (true or false)",
+ "If unset, default to not quantized. Accepted values (true or false)"
+ " (Not available when executing ArmNNTfLiteDelegate or TfliteInterpreter)",
cxxopts::value<bool>(m_ExNetParams.m_QuantizeInput)->default_value("false")->implicit_value("true"))
-
("r,threshold-time",
"Threshold time is the maximum allowed time for inference measured in milliseconds. If the actual "
"inference time is greater than the threshold time, the test will fail. By default, no threshold "
@@ -286,7 +287,8 @@ ProgramOptions::ProgramOptions() : m_CxxOptions{"ExecuteNetwork",
cxxopts::value<std::string>())
("x,subgraph-number",
- "Id of the subgraph to be executed. Defaults to 0.",
+ "Id of the subgraph to be executed. Defaults to 0."
+ " (Not available when executing ArmNNTfLiteDelegate or TfliteInterpreter)",
cxxopts::value<size_t>(m_ExNetParams.m_SubgraphId)->default_value("0"))
("y,input-type",