aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite/SliceOptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/tflite/SliceOptions.py')
-rw-r--r--ethosu/vela/tflite/SliceOptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethosu/vela/tflite/SliceOptions.py b/ethosu/vela/tflite/SliceOptions.py
index 4b41568d..ef16bb12 100644
--- a/ethosu/vela/tflite/SliceOptions.py
+++ b/ethosu/vela/tflite/SliceOptions.py
@@ -3,6 +3,8 @@
# namespace: tflite
import flatbuffers
+from flatbuffers.compat import import_numpy
+np = import_numpy()
class SliceOptions(object):
__slots__ = ['_tab']
@@ -14,6 +16,10 @@ class SliceOptions(object):
x.Init(buf, n + offset)
return x
+ @classmethod
+ def SliceOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
+
# SliceOptions
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)