Module tflite.StablehloWhileOptions
Functions
def AddBodySubgraphIndex(builder, bodySubgraphIndex)
-
Expand source code
def AddBodySubgraphIndex(builder, bodySubgraphIndex): StablehloWhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex)
def AddCondSubgraphIndex(builder, condSubgraphIndex)
-
Expand source code
def AddCondSubgraphIndex(builder, condSubgraphIndex): StablehloWhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex)
def End(builder)
-
Expand source code
def End(builder): return StablehloWhileOptionsEnd(builder)
def StablehloWhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex)
-
Expand source code
def StablehloWhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex): builder.PrependInt32Slot(1, bodySubgraphIndex, 0)
def StablehloWhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex)
-
Expand source code
def StablehloWhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex): builder.PrependInt32Slot(0, condSubgraphIndex, 0)
def StablehloWhileOptionsEnd(builder)
-
Expand source code
def StablehloWhileOptionsEnd(builder): return builder.EndObject()
def StablehloWhileOptionsStart(builder)
-
Expand source code
def StablehloWhileOptionsStart(builder): builder.StartObject(2)
def Start(builder)
-
Expand source code
def Start(builder): StablehloWhileOptionsStart(builder)
Classes
class StablehloWhileOptions
-
Expand source code
class StablehloWhileOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = StablehloWhileOptions() x.Init(buf, n + offset) return x @classmethod def GetRootAsStablehloWhileOptions(cls, buf, offset=0): """This method is deprecated. Please switch to GetRootAs.""" return cls.GetRootAs(buf, offset) @classmethod def StablehloWhileOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) # StablehloWhileOptions def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # StablehloWhileOptions def CondSubgraphIndex(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 # StablehloWhileOptions def BodySubgraphIndex(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0
Static methods
def GetRootAs(buf, offset=0)
def GetRootAsStablehloWhileOptions(buf, offset=0)
-
This method is deprecated. Please switch to GetRootAs.
def StablehloWhileOptionsBufferHasIdentifier(buf, offset, size_prefixed=False)
Methods
def BodySubgraphIndex(self)
-
Expand source code
def BodySubgraphIndex(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0
def CondSubgraphIndex(self)
-
Expand source code
def CondSubgraphIndex(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 Init(self, buf, pos)
-
Expand source code
def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos)