diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2022-08-16 12:17:24 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2022-08-29 10:12:44 +0100 |
commit | ca565c1b04b767abfc13a59146680663a3ea4008 (patch) | |
tree | 58b260768fe8cb690f740ece44fca9c415620d7f /delegate/src/DelegateOptions.cpp | |
parent | 514d16b434102a4a7807548745af301baab13b6b (diff) | |
download | armnn-ca565c1b04b767abfc13a59146680663a3ea4008.tar.gz |
IVGCVSW-6603 'Add a no fallback mode to the TfLite Delegate'
* Added disable-tflite-runtime-fallback option to armnn_delegate
* Updated armnn_delegate version
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I449b16404d3ffe98e6dac52a43e7c25225addd73
Diffstat (limited to 'delegate/src/DelegateOptions.cpp')
-rw-r--r-- | delegate/src/DelegateOptions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/delegate/src/DelegateOptions.cpp b/delegate/src/DelegateOptions.cpp index f3e13c90c6..a55a579333 100644 --- a/delegate/src/DelegateOptions.cpp +++ b/delegate/src/DelegateOptions.cpp @@ -242,6 +242,12 @@ DelegateOptions::DelegateOptions(char const* const* options_keys, { this->SetSerializeToDot(options_values[i]); } + + // Process disable-tflite-runtime-fallback + else if (std::string(options_keys[i]) == std::string("disable-tflite-runtime-fallback")) + { + this->DisableTfLiteRuntimeFallback(armnn::stringUtils::StringToBool(options_values[i])); + } else { throw armnn::Exception("Unknown option for the ArmNN Delegate given: " + std::string(options_keys[i])); |