@@ -12,13 +12,17 @@ class BatchMatMulOptions(object):
12
12
__slots__ = ['_tab' ]
13
13
14
14
@classmethod
15
- def GetRootAsBatchMatMulOptions (cls , buf , offset ):
15
+ def GetRootAs (cls , buf , offset = 0 ):
16
16
n = flatbuffers .encode .Get (flatbuffers .packer .uoffset , buf , offset )
17
17
x = BatchMatMulOptions ()
18
18
x .Init (buf , n + offset )
19
19
return x
20
20
21
21
@classmethod
22
+ def GetRootAsBatchMatMulOptions (cls , buf , offset = 0 ):
23
+ """This method is deprecated. Please switch to GetRootAs."""
24
+ return cls .GetRootAs (buf , offset )
25
+ @classmethod
22
26
def BatchMatMulOptionsBufferHasIdentifier (cls , buf , offset , size_prefixed = False ):
23
27
return flatbuffers .util .BufferHasIdentifier (buf , offset , b"\x54 \x46 \x4C \x33 " , size_prefixed = size_prefixed )
24
28
@@ -47,8 +51,23 @@ def AsymmetricQuantizeInputs(self):
47
51
return bool (self ._tab .Get (flatbuffers .number_types .BoolFlags , o + self ._tab .Pos ))
48
52
return False
49
53
50
- def BatchMatMulOptionsStart (builder ): builder .StartObject (3 )
51
- def BatchMatMulOptionsAddAdjX (builder , adjX ): builder .PrependBoolSlot (0 , adjX , 0 )
52
- def BatchMatMulOptionsAddAdjY (builder , adjY ): builder .PrependBoolSlot (1 , adjY , 0 )
53
- def BatchMatMulOptionsAddAsymmetricQuantizeInputs (builder , asymmetricQuantizeInputs ): builder .PrependBoolSlot (2 , asymmetricQuantizeInputs , 0 )
54
- def BatchMatMulOptionsEnd (builder ): return builder .EndObject ()
54
+ def Start (builder ): builder .StartObject (3 )
55
+ def BatchMatMulOptionsStart (builder ):
56
+ """This method is deprecated. Please switch to Start."""
57
+ return Start (builder )
58
+ def AddAdjX (builder , adjX ): builder .PrependBoolSlot (0 , adjX , 0 )
59
+ def BatchMatMulOptionsAddAdjX (builder , adjX ):
60
+ """This method is deprecated. Please switch to AddAdjX."""
61
+ return AddAdjX (builder , adjX )
62
+ def AddAdjY (builder , adjY ): builder .PrependBoolSlot (1 , adjY , 0 )
63
+ def BatchMatMulOptionsAddAdjY (builder , adjY ):
64
+ """This method is deprecated. Please switch to AddAdjY."""
65
+ return AddAdjY (builder , adjY )
66
+ def AddAsymmetricQuantizeInputs (builder , asymmetricQuantizeInputs ): builder .PrependBoolSlot (2 , asymmetricQuantizeInputs , 0 )
67
+ def BatchMatMulOptionsAddAsymmetricQuantizeInputs (builder , asymmetricQuantizeInputs ):
68
+ """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs."""
69
+ return AddAsymmetricQuantizeInputs (builder , asymmetricQuantizeInputs )
70
+ def End (builder ): return builder .EndObject ()
71
+ def BatchMatMulOptionsEnd (builder ):
72
+ """This method is deprecated. Please switch to End."""
73
+ return End (builder )
0 commit comments