1 # automatically generated by the FlatBuffers compiler, do not modify
3 # namespace: onert_tflite
8 class BatchMatMulOptions(object):
12 def GetRootAsBatchMatMulOptions(cls, buf, offset):
13 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
14 x = BatchMatMulOptions()
15 x.Init(buf, n + offset)
19 def Init(self, buf, pos):
20 self._tab = flatbuffers.table.Table(buf, pos)
24 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
27 self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
32 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
35 self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
39 def BatchMatMulOptionsStart(builder):
40 builder.StartObject(2)
43 def BatchMatMulOptionsAddAdjointLhs(builder, adjointLhs):
44 builder.PrependBoolSlot(0, adjointLhs, 0)
47 def BatchMatMulOptionsAddAdjointRhs(builder, adjointRhs):
48 builder.PrependBoolSlot(1, adjointRhs, 0)
51 def BatchMatMulOptionsEnd(builder):
52 return builder.EndObject()