aboutsummaryrefslogtreecommitdiff
path: root/ethosu/vela/tflite/UnsortedSegmentProdOptions.py
diff options
context:
space:
mode:
authorerik.andersson@arm.com <erik.andersson@arm.com>2022-06-29 09:46:30 +0200
committererik.andersson@arm.com <erik.andersson@arm.com>2022-07-14 14:09:44 +0200
commit93f492bae9c4dd16a1f64b851b237263695ee03e (patch)
treeb3c3c7b8d091ebb737dc53df23b690eadea87335 /ethosu/vela/tflite/UnsortedSegmentProdOptions.py
parentd03dc504452dbb32db383121f3dad81f4280bb3c (diff)
downloadethos-u-vela-93f492bae9c4dd16a1f64b851b237263695ee03e.tar.gz
MLBEDSW-6635: Update to TensorFlow 2.9
Update the flatbuffers generated code to comply with TensorFlow 2.9 Signed-off-by: erik.andersson@arm.com <erik.andersson@arm.com> Change-Id: I6bf506ffb85da2d4a57a32198b471513deeaca73
Diffstat (limited to 'ethosu/vela/tflite/UnsortedSegmentProdOptions.py')
-rw-r--r--ethosu/vela/tflite/UnsortedSegmentProdOptions.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/ethosu/vela/tflite/UnsortedSegmentProdOptions.py b/ethosu/vela/tflite/UnsortedSegmentProdOptions.py
new file mode 100644
index 00000000..46650192
--- /dev/null
+++ b/ethosu/vela/tflite/UnsortedSegmentProdOptions.py
@@ -0,0 +1,30 @@
+# automatically generated by the FlatBuffers compiler, do not modify
+
+# namespace: tflite
+
+import flatbuffers
+
+class UnsortedSegmentProdOptions(object):
+ __slots__ = ['_tab']
+
+ @classmethod
+ def GetRootAsUnsortedSegmentProdOptions(cls, buf, offset):
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
+ x = UnsortedSegmentProdOptions()
+ x.Init(buf, n + offset)
+ return x
+
+ # UnsortedSegmentProdOptions
+ def Init(self, buf, pos):
+ self._tab = flatbuffers.table.Table(buf, pos)
+
+ # UnsortedSegmentProdOptions
+ def NumSegments(self):
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
+ if o != 0:
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
+ return 0
+
+def UnsortedSegmentProdOptionsStart(builder): builder.StartObject(1)
+def UnsortedSegmentProdOptionsAddNumSegments(builder, numSegments): builder.PrependInt32Slot(0, numSegments, 0)
+def UnsortedSegmentProdOptionsEnd(builder): return builder.EndObject()