blob: 5714c330e32a1c8e6eae114dce85678e8b2191c1 [file] [log] [blame]
Dwight Lidman8a12da12021-07-19 13:43:05 +02001# automatically generated by the FlatBuffers compiler, do not modify
2
3# namespace: tflite
4
5import flatbuffers
6
7class CallOnceOptions(object):
8 __slots__ = ['_tab']
9
10 @classmethod
11 def GetRootAsCallOnceOptions(cls, buf, offset):
12 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
13 x = CallOnceOptions()
14 x.Init(buf, n + offset)
15 return x
16
17 @classmethod
18 def CallOnceOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
19 return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
20
21 # CallOnceOptions
22 def Init(self, buf, pos):
23 self._tab = flatbuffers.table.Table(buf, pos)
24
25 # CallOnceOptions
26 def InitSubgraphIndex(self):
27 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
28 if o != 0:
29 return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
30 return 0
31
32def CallOnceOptionsStart(builder): builder.StartObject(1)
33def CallOnceOptionsAddInitSubgraphIndex(builder, initSubgraphIndex): builder.PrependInt32Slot(0, initSubgraphIndex, 0)
34def CallOnceOptionsEnd(builder): return builder.EndObject()