IVGCVSW-4968 Fix exception handling in TfLiteParser.
authorColm Donelan <Colm.Donelan@arm.com>
Tue, 9 Jun 2020 15:56:25 +0000 (16:56 +0100)
committerColm Donelan <Colm.Donelan@arm.com>
Tue, 9 Jun 2020 15:56:46 +0000 (16:56 +0100)
commit6350d27286114dfdae5f65ae1823ba1150087efb
treeb2941db6a0d1cfff1bdb9005e1a7b1c1c3149844
parentb22a75e2aaec1175bbacba54e1a33a83f9749ce2
IVGCVSW-4968 Fix exception handling in TfLiteParser.

* The function TfLiteParser::CreateNetworkFromModel was continuing
  to parse the input file even after a fatal exception was encountered.
  restructure catch exceptions outside the for loop.
* Add simple unit tests to test some exception handling.

Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I202ca6819d40a47159b4ac8f2847958f945666c2
CMakeLists.txt
src/armnnTfLiteParser/TfLiteParser.cpp
src/armnnTfLiteParser/test/TfLiteParser.cpp [new file with mode: 0644]