IVGCVSW-4007 Add StandInLayer for unsupported operations in TfLiteParser
authorAron Virginas-Tar <Aron.Virginas-Tar@arm.com>
Wed, 23 Oct 2019 16:38:17 +0000 (17:38 +0100)
committerÁron Virginás-Tar <aron.virginas-tar@arm.com>
Thu, 24 Oct 2019 14:47:31 +0000 (14:47 +0000)
commitc975f9295e076febd4ecd45c9174d54f7327b3cc
treea712ed96879644a720a94cde01d927300ee5af17
parent7bbdf9db051f40377a284a28375816e60349376d
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 <Aron.Virginas-Tar@arm.com>
Change-Id: I125a63016c7c510b1fdde6033842db4f276718c4
CMakeLists.txt
include/armnnTfLiteParser/ITfLiteParser.hpp
src/armnnTfLiteParser/TfLiteParser.cpp
src/armnnTfLiteParser/TfLiteParser.hpp
src/armnnTfLiteParser/test/ParserFlatbuffersFixture.hpp
src/armnnTfLiteParser/test/Unsupported.cpp [new file with mode: 0644]