From 3cff15a5d8797d0afe5d5b1cb3ff0e5b7d1cd6c9 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Tue, 12 Oct 2021 15:06:19 +0100 Subject: 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 Change-Id: Ied663a1e00ac3eece42244ed313ddafd6d2ce078 --- tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/ExecuteNetwork/ExecuteNetworkProgramOptions.cpp') 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(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(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()) ("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(m_ExNetParams.m_SubgraphId)->default_value("0")) ("y,input-type", -- cgit v1.2.1