From c975f9295e076febd4ecd45c9174d54f7327b3cc Mon Sep 17 00:00:00 2001 From: Aron Virginas-Tar Date: Wed, 23 Oct 2019 17:38:17 +0100 Subject: IVGCVSW-4007 Add StandInLayer for unsupported operations in TfLiteParser * Fixed bug in custom operator support that caused all custom operators to be parsed as a DetectionPostProcessLayer * Added support for handling unsupported operators (built-in or custom) by replacing them with a StandInLayer in the generated network * Added options to TfLiteParser to control whether we want to use StandInLayers when we encounter unsupported operators, or we prefer to throw a ParserException as until now Signed-off-by: Aron Virginas-Tar Change-Id: I125a63016c7c510b1fdde6033842db4f276718c4 --- include/armnnTfLiteParser/ITfLiteParser.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/armnnTfLiteParser/ITfLiteParser.hpp b/include/armnnTfLiteParser/ITfLiteParser.hpp index 36b9246ee5..de1eae7635 100644 --- a/include/armnnTfLiteParser/ITfLiteParser.hpp +++ b/include/armnnTfLiteParser/ITfLiteParser.hpp @@ -8,6 +8,7 @@ #include "armnn/NetworkFwd.hpp" #include "armnn/Tensor.hpp" #include "armnn/INetwork.hpp" +#include "armnn/Optional.hpp" #include #include @@ -24,8 +25,16 @@ using ITfLiteParserPtr = std::unique_ptr& options = armnn::EmptyOptional()); + static ITfLiteParserPtr Create(const armnn::Optional& options = armnn::EmptyOptional()); static void Destroy(ITfLiteParser* parser); /// Create the network from a flatbuffers binary file on disk -- cgit v1.2.1