diff options
author | Tim Hall <tim.hall@arm.com> | 2021-02-04 21:31:57 +0000 |
---|---|---|
committer | Tim Hall <tim.hall@arm.com> | 2021-02-05 11:54:48 +0000 |
commit | 42abec185a95ac8d5f2b32d541f587b3cd306e75 (patch) | |
tree | 7c17eb47cb89a37b9f9d82add61385a5a82c40fe /ethosu/vela/tflite_reader.py | |
parent | 73e843f76dd71e4ab5e07a7616c2c4806ca6ac25 (diff) | |
download | ethos-u-vela-42abec185a95ac8d5f2b32d541f587b3cd306e75.tar.gz |
MLBEDSW-3771: Updated to TF 2.4 flatbuffer schema
Updated tflite loader and mappings from tensorflow 2.3 to tensorflow 2.4
Signed-off-by: Tim Hall <tim.hall@arm.com>
Change-Id: I55884000ee139baf639bb0377008e0534f72fe94
Diffstat (limited to 'ethosu/vela/tflite_reader.py')
-rw-r--r-- | ethosu/vela/tflite_reader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethosu/vela/tflite_reader.py b/ethosu/vela/tflite_reader.py index 45397c2b..ae99c339 100644 --- a/ethosu/vela/tflite_reader.py +++ b/ethosu/vela/tflite_reader.py @@ -266,6 +266,8 @@ class TFLiteGraph: def parse_operator_code(self, code): c = code.BuiltinCode() + if c == 0: + c = code.DeprecatedBuiltinCode() if c not in builtin_operator_map: raise InputFileError( self.name, f"The input file contains operator code '{c}' which is currently not supported" |