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_writer.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_writer.py')
-rw-r--r-- | ethosu/vela/tflite_writer.py | 1 |
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) |