From 8a12da19e247750770bd0c2465d3690c1fcd7316 Mon Sep 17 00:00:00 2001 From: Dwight Lidman Date: Mon, 19 Jul 2021 13:43:05 +0200 Subject: MLBEDSW-4854: Update to TensorFlow 2.5 This commit updates the flatbuffers generated code to comply with TensorFlow 2.5, as well as stripping away some legacy code. Signed-off-by: Dwight Lidman Change-Id: I01fe47ec2bde6e78fdde21ee1bc0a71f560c53ae --- ethosu/vela/tflite/SegmentSumOptions.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ethosu/vela/tflite/SegmentSumOptions.py') diff --git a/ethosu/vela/tflite/SegmentSumOptions.py b/ethosu/vela/tflite/SegmentSumOptions.py index d1c32133..3b231262 100644 --- a/ethosu/vela/tflite/SegmentSumOptions.py +++ b/ethosu/vela/tflite/SegmentSumOptions.py @@ -3,6 +3,8 @@ # namespace: tflite import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() class SegmentSumOptions(object): __slots__ = ['_tab'] @@ -14,6 +16,10 @@ class SegmentSumOptions(object): x.Init(buf, n + offset) return x + @classmethod + def SegmentSumOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): + return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) + # SegmentSumOptions def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -- cgit v1.2.1