Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / tools / tflitefile_tool / tflite / BatchMatMulOptions.py
1 # automatically generated by the FlatBuffers compiler, do not modify
2
3 # namespace: onert_tflite
4
5 import flatbuffers
6
7
8 class BatchMatMulOptions(object):
9     __slots__ = ['_tab']
10
11     @classmethod
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)
16         return x
17
18     # BatchMatMulOptions
19     def Init(self, buf, pos):
20         self._tab = flatbuffers.table.Table(buf, pos)
21
22     # BatchMatMulOptions
23     def AdjointLhs(self):
24         o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
25         if o != 0:
26             return bool(
27                 self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
28         return False
29
30     # BatchMatMulOptions
31     def AdjointRhs(self):
32         o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
33         if o != 0:
34             return bool(
35                 self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
36         return False
37
38
39 def BatchMatMulOptionsStart(builder):
40     builder.StartObject(2)
41
42
43 def BatchMatMulOptionsAddAdjointLhs(builder, adjointLhs):
44     builder.PrependBoolSlot(0, adjointLhs, 0)
45
46
47 def BatchMatMulOptionsAddAdjointRhs(builder, adjointRhs):
48     builder.PrependBoolSlot(1, adjointRhs, 0)
49
50
51 def BatchMatMulOptionsEnd(builder):
52     return builder.EndObject()