aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite_writer.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_writer.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_writer.py')
-rw-r--r--ethosu/vela/tflite_writer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethosu/vela/tflite_writer.py b/ethosu/vela/tflite_writer.py
index 82a063ff..e190a746 100644
--- a/ethosu/vela/tflite_writer.py
+++ b/ethosu/vela/tflite_writer.py
@@ -193,6 +193,7 @@ class TFLiteSerialiser:
self.operator_code_map[op_type] = (idx, tf_code, opt_serializer)
OperatorCode.OperatorCodeStart(builder)
+ OperatorCode.OperatorCodeAddDeprecatedBuiltinCode(builder, tf_code if tf_code < 127 else 127)
OperatorCode.OperatorCodeAddBuiltinCode(builder, tf_code)
if custom_code_offset is not None:
OperatorCode.OperatorCodeAddCustomCode(builder, custom_code_offset)