1 # automatically generated by the FlatBuffers compiler, do not modify
3 # namespace: onert_tflite
8 class WhileOptions(object):
12 def GetRootAsWhileOptions(cls, buf, offset):
13 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
15 x.Init(buf, n + offset)
19 def Init(self, buf, pos):
20 self._tab = flatbuffers.table.Table(buf, pos)
23 def CondSubgraphIndex(self):
24 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
26 return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
30 def BodySubgraphIndex(self):
31 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
33 return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
37 def WhileOptionsStart(builder):
38 builder.StartObject(2)
41 def WhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex):
42 builder.PrependInt32Slot(0, condSubgraphIndex, 0)
45 def WhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex):
46 builder.PrependInt32Slot(1, bodySubgraphIndex, 0)
49 def WhileOptionsEnd(builder):
50 return builder.EndObject()