aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_reader.py
diff options
context:
space:
mode:
authorTim Hall <tim.hall@arm.com>2021-02-04 21:31:57 +0000
committerTim Hall <tim.hall@arm.com>2021-02-05 11:54:48 +0000
commit42abec185a95ac8d5f2b32d541f587b3cd306e75 (patch)
tree7c17eb47cb89a37b9f9d82add61385a5a82c40fe /ethosu/vela/tflite_reader.py
parent73e843f76dd71e4ab5e07a7616c2c4806ca6ac25 (diff)
downloadethos-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.py2
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"