aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite/Int32Vector.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/vela/tflite/Int32Vector.py')
-rw-r--r--ethosu/vela/tflite/Int32Vector.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethosu/vela/tflite/Int32Vector.py b/ethosu/vela/tflite/Int32Vector.py
index e70851b2..0575b2e8 100644
--- a/ethosu/vela/tflite/Int32Vector.py
+++ b/ethosu/vela/tflite/Int32Vector.py
@@ -14,6 +14,10 @@ class Int32Vector(object):
x.Init(buf, n + offset)
return x
+ @classmethod
+ def Int32VectorBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
+
# Int32Vector
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
@@ -40,6 +44,11 @@ class Int32Vector(object):
return self._tab.VectorLen(o)
return 0
+ # Int32Vector
+ def ValuesIsNone(self):
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
+ return o == 0
+
def Int32VectorStart(builder): builder.StartObject(1)
def Int32VectorAddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0)
def Int32VectorStartValuesVector(builder, numElems): return builder.StartVector(4, numElems, 4)