nnilayy commited on
Commit
d8a50a5
·
verified ·
1 Parent(s): 0a0e342

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. lib/python3.10/site-packages/av/audio/codeccontext.cpython-310-x86_64-linux-gnu.so +3 -0
  3. lib/python3.10/site-packages/av/audio/stream.cpython-310-x86_64-linux-gnu.so +3 -0
  4. lib/python3.10/site-packages/tf2onnx/tflite/AddNOptions.py +30 -0
  5. lib/python3.10/site-packages/tf2onnx/tflite/AddOptions.py +46 -0
  6. lib/python3.10/site-packages/tf2onnx/tflite/ArgMaxOptions.py +38 -0
  7. lib/python3.10/site-packages/tf2onnx/tflite/BatchMatMulOptions.py +54 -0
  8. lib/python3.10/site-packages/tf2onnx/tflite/BatchToSpaceNDOptions.py +30 -0
  9. lib/python3.10/site-packages/tf2onnx/tflite/BidirectionalSequenceLSTMOptions.py +78 -0
  10. lib/python3.10/site-packages/tf2onnx/tflite/BidirectionalSequenceRNNOptions.py +62 -0
  11. lib/python3.10/site-packages/tf2onnx/tflite/Buffer.py +59 -0
  12. lib/python3.10/site-packages/tf2onnx/tflite/CallOnceOptions.py +38 -0
  13. lib/python3.10/site-packages/tf2onnx/tflite/ConcatenationOptions.py +46 -0
  14. lib/python3.10/site-packages/tf2onnx/tflite/CumsumOptions.py +46 -0
  15. lib/python3.10/site-packages/tf2onnx/tflite/CustomOptionsFormat.py +9 -0
  16. lib/python3.10/site-packages/tf2onnx/tflite/CustomQuantization.py +59 -0
  17. lib/python3.10/site-packages/tf2onnx/tflite/DequantizeOptions.py +30 -0
  18. lib/python3.10/site-packages/tf2onnx/tflite/DivOptions.py +38 -0
  19. lib/python3.10/site-packages/tf2onnx/tflite/EmbeddingLookupSparseOptions.py +38 -0
  20. lib/python3.10/site-packages/tf2onnx/tflite/EqualOptions.py +30 -0
  21. lib/python3.10/site-packages/tf2onnx/tflite/ExpandDimsOptions.py +30 -0
  22. lib/python3.10/site-packages/tf2onnx/tflite/FloorDivOptions.py +30 -0
  23. lib/python3.10/site-packages/tf2onnx/tflite/FloorModOptions.py +30 -0
  24. lib/python3.10/site-packages/tf2onnx/tflite/FullyConnectedOptions.py +62 -0
  25. lib/python3.10/site-packages/tf2onnx/tflite/GatherNdOptions.py +30 -0
  26. lib/python3.10/site-packages/tf2onnx/tflite/GreaterEqualOptions.py +30 -0
  27. lib/python3.10/site-packages/tf2onnx/tflite/IfOptions.py +46 -0
  28. lib/python3.10/site-packages/tf2onnx/tflite/L2NormOptions.py +38 -0
  29. lib/python3.10/site-packages/tf2onnx/tflite/LSHProjectionOptions.py +38 -0
  30. lib/python3.10/site-packages/tf2onnx/tflite/LSHProjectionType.py +11 -0
  31. lib/python3.10/site-packages/tf2onnx/tflite/LSTMKernelType.py +10 -0
  32. lib/python3.10/site-packages/tf2onnx/tflite/LSTMOptions.py +70 -0
  33. lib/python3.10/site-packages/tf2onnx/tflite/LeakyReluOptions.py +38 -0
  34. lib/python3.10/site-packages/tf2onnx/tflite/LessOptions.py +30 -0
  35. lib/python3.10/site-packages/tf2onnx/tflite/LogSoftmaxOptions.py +30 -0
  36. lib/python3.10/site-packages/tf2onnx/tflite/LogicalAndOptions.py +30 -0
  37. lib/python3.10/site-packages/tf2onnx/tflite/LogicalOrOptions.py +30 -0
  38. lib/python3.10/site-packages/tf2onnx/tflite/MatrixDiagOptions.py +30 -0
  39. lib/python3.10/site-packages/tf2onnx/tflite/MatrixSetDiagOptions.py +30 -0
  40. lib/python3.10/site-packages/tf2onnx/tflite/Metadata.py +46 -0
  41. lib/python3.10/site-packages/tf2onnx/tflite/MulOptions.py +38 -0
  42. lib/python3.10/site-packages/tf2onnx/tflite/NegOptions.py +30 -0
  43. lib/python3.10/site-packages/tf2onnx/tflite/NonMaxSuppressionV4Options.py +30 -0
  44. lib/python3.10/site-packages/tf2onnx/tflite/OneHotOptions.py +38 -0
  45. lib/python3.10/site-packages/tf2onnx/tflite/Operator.py +210 -0
  46. lib/python3.10/site-packages/tf2onnx/tflite/PackOptions.py +46 -0
  47. lib/python3.10/site-packages/tf2onnx/tflite/PadOptions.py +30 -0
  48. lib/python3.10/site-packages/tf2onnx/tflite/PadV2Options.py +30 -0
  49. lib/python3.10/site-packages/tf2onnx/tflite/RNNOptions.py +46 -0
  50. lib/python3.10/site-packages/tf2onnx/tflite/RangeOptions.py +30 -0
.gitattributes CHANGED
@@ -99,3 +99,5 @@ lib/python3.10/site-packages/av/video/format.cpython-310-x86_64-linux-gnu.so fil
99
  lib/python3.10/site-packages/av/sidedata/motionvectors.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
100
  lib/python3.10/site-packages/av/audio/layout.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
101
  lib/python3.10/site-packages/av/audio/plane.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
 
 
 
99
  lib/python3.10/site-packages/av/sidedata/motionvectors.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
100
  lib/python3.10/site-packages/av/audio/layout.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
101
  lib/python3.10/site-packages/av/audio/plane.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
102
+ lib/python3.10/site-packages/av/audio/stream.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
103
+ lib/python3.10/site-packages/av/audio/codeccontext.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
lib/python3.10/site-packages/av/audio/codeccontext.cpython-310-x86_64-linux-gnu.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:56e98e1b9aaa98cdcf6c85d76da63690770ce022816e0a3ce7d9740e874611a3
3
+ size 453801
lib/python3.10/site-packages/av/audio/stream.cpython-310-x86_64-linux-gnu.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eafde59e9c342c16da1eb2258d6a4d45b28731a489b566a8ce715f28db706b0b
3
+ size 453873
lib/python3.10/site-packages/tf2onnx/tflite/AddNOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class AddNOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsAddNOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = AddNOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def AddNOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # AddNOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def AddNOptionsStart(builder): builder.StartObject(0)
30
+ def AddNOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/AddOptions.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class AddOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsAddOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = AddOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def AddOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # AddOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # AddOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # AddOptions
37
+ def PotScaleInt16(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
41
+ return True
42
+
43
+ def AddOptionsStart(builder): builder.StartObject(2)
44
+ def AddOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
45
+ def AddOptionsAddPotScaleInt16(builder, potScaleInt16): builder.PrependBoolSlot(1, potScaleInt16, 1)
46
+ def AddOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/ArgMaxOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class ArgMaxOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsArgMaxOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = ArgMaxOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def ArgMaxOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # ArgMaxOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # ArgMaxOptions
30
+ def OutputType(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def ArgMaxOptionsStart(builder): builder.StartObject(1)
37
+ def ArgMaxOptionsAddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0)
38
+ def ArgMaxOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/BatchMatMulOptions.py ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class BatchMatMulOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsBatchMatMulOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = BatchMatMulOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def BatchMatMulOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # BatchMatMulOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # BatchMatMulOptions
30
+ def AdjX(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
34
+ return False
35
+
36
+ # BatchMatMulOptions
37
+ def AdjY(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
41
+ return False
42
+
43
+ # BatchMatMulOptions
44
+ def AsymmetricQuantizeInputs(self):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
46
+ if o != 0:
47
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
48
+ return False
49
+
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()
lib/python3.10/site-packages/tf2onnx/tflite/BatchToSpaceNDOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class BatchToSpaceNDOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsBatchToSpaceNDOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = BatchToSpaceNDOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def BatchToSpaceNDOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # BatchToSpaceNDOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def BatchToSpaceNDOptionsStart(builder): builder.StartObject(0)
30
+ def BatchToSpaceNDOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/BidirectionalSequenceLSTMOptions.py ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class BidirectionalSequenceLSTMOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsBidirectionalSequenceLSTMOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = BidirectionalSequenceLSTMOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def BidirectionalSequenceLSTMOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # BidirectionalSequenceLSTMOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # BidirectionalSequenceLSTMOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # BidirectionalSequenceLSTMOptions
37
+ def CellClip(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
41
+ return 0.0
42
+
43
+ # BidirectionalSequenceLSTMOptions
44
+ def ProjClip(self):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
46
+ if o != 0:
47
+ return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
48
+ return 0.0
49
+
50
+ # BidirectionalSequenceLSTMOptions
51
+ def MergeOutputs(self):
52
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
53
+ if o != 0:
54
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
55
+ return False
56
+
57
+ # BidirectionalSequenceLSTMOptions
58
+ def TimeMajor(self):
59
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
60
+ if o != 0:
61
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
62
+ return True
63
+
64
+ # BidirectionalSequenceLSTMOptions
65
+ def AsymmetricQuantizeInputs(self):
66
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
67
+ if o != 0:
68
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
69
+ return False
70
+
71
+ def BidirectionalSequenceLSTMOptionsStart(builder): builder.StartObject(6)
72
+ def BidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
73
+ def BidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0)
74
+ def BidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0)
75
+ def BidirectionalSequenceLSTMOptionsAddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(3, mergeOutputs, 0)
76
+ def BidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(4, timeMajor, 1)
77
+ def BidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(5, asymmetricQuantizeInputs, 0)
78
+ def BidirectionalSequenceLSTMOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/BidirectionalSequenceRNNOptions.py ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class BidirectionalSequenceRNNOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsBidirectionalSequenceRNNOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = BidirectionalSequenceRNNOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def BidirectionalSequenceRNNOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # BidirectionalSequenceRNNOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # BidirectionalSequenceRNNOptions
30
+ def TimeMajor(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
34
+ return False
35
+
36
+ # BidirectionalSequenceRNNOptions
37
+ def FusedActivationFunction(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
41
+ return 0
42
+
43
+ # BidirectionalSequenceRNNOptions
44
+ def MergeOutputs(self):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
46
+ if o != 0:
47
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
48
+ return False
49
+
50
+ # BidirectionalSequenceRNNOptions
51
+ def AsymmetricQuantizeInputs(self):
52
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
53
+ if o != 0:
54
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
55
+ return False
56
+
57
+ def BidirectionalSequenceRNNOptionsStart(builder): builder.StartObject(4)
58
+ def BidirectionalSequenceRNNOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0)
59
+ def BidirectionalSequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0)
60
+ def BidirectionalSequenceRNNOptionsAddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(2, mergeOutputs, 0)
61
+ def BidirectionalSequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(3, asymmetricQuantizeInputs, 0)
62
+ def BidirectionalSequenceRNNOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/Buffer.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class Buffer(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsBuffer(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = Buffer()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def BufferBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # Buffer
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # Buffer
30
+ def Data(self, j):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ a = self._tab.Vector(o)
34
+ return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1))
35
+ return 0
36
+
37
+ # Buffer
38
+ def DataAsNumpy(self):
39
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
40
+ if o != 0:
41
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o)
42
+ return 0
43
+
44
+ # Buffer
45
+ def DataLength(self):
46
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
47
+ if o != 0:
48
+ return self._tab.VectorLen(o)
49
+ return 0
50
+
51
+ # Buffer
52
+ def DataIsNone(self):
53
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
54
+ return o == 0
55
+
56
+ def BufferStart(builder): builder.StartObject(1)
57
+ def BufferAddData(builder, data): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(data), 0)
58
+ def BufferStartDataVector(builder, numElems): return builder.StartVector(1, numElems, 1)
59
+ def BufferEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/CallOnceOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class CallOnceOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsCallOnceOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = CallOnceOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def CallOnceOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # CallOnceOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # CallOnceOptions
30
+ def InitSubgraphIndex(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def CallOnceOptionsStart(builder): builder.StartObject(1)
37
+ def CallOnceOptionsAddInitSubgraphIndex(builder, initSubgraphIndex): builder.PrependInt32Slot(0, initSubgraphIndex, 0)
38
+ def CallOnceOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/ConcatenationOptions.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class ConcatenationOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsConcatenationOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = ConcatenationOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def ConcatenationOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # ConcatenationOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # ConcatenationOptions
30
+ def Axis(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # ConcatenationOptions
37
+ def FusedActivationFunction(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
41
+ return 0
42
+
43
+ def ConcatenationOptionsStart(builder): builder.StartObject(2)
44
+ def ConcatenationOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0)
45
+ def ConcatenationOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0)
46
+ def ConcatenationOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/CumsumOptions.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class CumsumOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsCumsumOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = CumsumOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def CumsumOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # CumsumOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # CumsumOptions
30
+ def Exclusive(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
34
+ return False
35
+
36
+ # CumsumOptions
37
+ def Reverse(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
41
+ return False
42
+
43
+ def CumsumOptionsStart(builder): builder.StartObject(2)
44
+ def CumsumOptionsAddExclusive(builder, exclusive): builder.PrependBoolSlot(0, exclusive, 0)
45
+ def CumsumOptionsAddReverse(builder, reverse): builder.PrependBoolSlot(1, reverse, 0)
46
+ def CumsumOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/CustomOptionsFormat.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ class CustomOptionsFormat(object):
8
+ FLEXBUFFERS = 0
9
+
lib/python3.10/site-packages/tf2onnx/tflite/CustomQuantization.py ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class CustomQuantization(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsCustomQuantization(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = CustomQuantization()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def CustomQuantizationBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # CustomQuantization
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # CustomQuantization
30
+ def Custom(self, j):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ a = self._tab.Vector(o)
34
+ return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1))
35
+ return 0
36
+
37
+ # CustomQuantization
38
+ def CustomAsNumpy(self):
39
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
40
+ if o != 0:
41
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o)
42
+ return 0
43
+
44
+ # CustomQuantization
45
+ def CustomLength(self):
46
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
47
+ if o != 0:
48
+ return self._tab.VectorLen(o)
49
+ return 0
50
+
51
+ # CustomQuantization
52
+ def CustomIsNone(self):
53
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
54
+ return o == 0
55
+
56
+ def CustomQuantizationStart(builder): builder.StartObject(1)
57
+ def CustomQuantizationAddCustom(builder, custom): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(custom), 0)
58
+ def CustomQuantizationStartCustomVector(builder, numElems): return builder.StartVector(1, numElems, 1)
59
+ def CustomQuantizationEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/DequantizeOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class DequantizeOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsDequantizeOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = DequantizeOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def DequantizeOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # DequantizeOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def DequantizeOptionsStart(builder): builder.StartObject(0)
30
+ def DequantizeOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/DivOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class DivOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsDivOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = DivOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def DivOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # DivOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # DivOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def DivOptionsStart(builder): builder.StartObject(1)
37
+ def DivOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
38
+ def DivOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/EmbeddingLookupSparseOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class EmbeddingLookupSparseOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsEmbeddingLookupSparseOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = EmbeddingLookupSparseOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def EmbeddingLookupSparseOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # EmbeddingLookupSparseOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # EmbeddingLookupSparseOptions
30
+ def Combiner(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def EmbeddingLookupSparseOptionsStart(builder): builder.StartObject(1)
37
+ def EmbeddingLookupSparseOptionsAddCombiner(builder, combiner): builder.PrependInt8Slot(0, combiner, 0)
38
+ def EmbeddingLookupSparseOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/EqualOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class EqualOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsEqualOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = EqualOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def EqualOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # EqualOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def EqualOptionsStart(builder): builder.StartObject(0)
30
+ def EqualOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/ExpandDimsOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class ExpandDimsOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsExpandDimsOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = ExpandDimsOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def ExpandDimsOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # ExpandDimsOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def ExpandDimsOptionsStart(builder): builder.StartObject(0)
30
+ def ExpandDimsOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/FloorDivOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class FloorDivOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsFloorDivOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = FloorDivOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def FloorDivOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # FloorDivOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def FloorDivOptionsStart(builder): builder.StartObject(0)
30
+ def FloorDivOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/FloorModOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class FloorModOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsFloorModOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = FloorModOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def FloorModOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # FloorModOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def FloorModOptionsStart(builder): builder.StartObject(0)
30
+ def FloorModOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/FullyConnectedOptions.py ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class FullyConnectedOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsFullyConnectedOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = FullyConnectedOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def FullyConnectedOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # FullyConnectedOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # FullyConnectedOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # FullyConnectedOptions
37
+ def WeightsFormat(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
41
+ return 0
42
+
43
+ # FullyConnectedOptions
44
+ def KeepNumDims(self):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
46
+ if o != 0:
47
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
48
+ return False
49
+
50
+ # FullyConnectedOptions
51
+ def AsymmetricQuantizeInputs(self):
52
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
53
+ if o != 0:
54
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
55
+ return False
56
+
57
+ def FullyConnectedOptionsStart(builder): builder.StartObject(4)
58
+ def FullyConnectedOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
59
+ def FullyConnectedOptionsAddWeightsFormat(builder, weightsFormat): builder.PrependInt8Slot(1, weightsFormat, 0)
60
+ def FullyConnectedOptionsAddKeepNumDims(builder, keepNumDims): builder.PrependBoolSlot(2, keepNumDims, 0)
61
+ def FullyConnectedOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(3, asymmetricQuantizeInputs, 0)
62
+ def FullyConnectedOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/GatherNdOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class GatherNdOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsGatherNdOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = GatherNdOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def GatherNdOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # GatherNdOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def GatherNdOptionsStart(builder): builder.StartObject(0)
30
+ def GatherNdOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/GreaterEqualOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class GreaterEqualOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsGreaterEqualOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = GreaterEqualOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def GreaterEqualOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # GreaterEqualOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def GreaterEqualOptionsStart(builder): builder.StartObject(0)
30
+ def GreaterEqualOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/IfOptions.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class IfOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsIfOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = IfOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def IfOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # IfOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # IfOptions
30
+ def ThenSubgraphIndex(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # IfOptions
37
+ def ElseSubgraphIndex(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
41
+ return 0
42
+
43
+ def IfOptionsStart(builder): builder.StartObject(2)
44
+ def IfOptionsAddThenSubgraphIndex(builder, thenSubgraphIndex): builder.PrependInt32Slot(0, thenSubgraphIndex, 0)
45
+ def IfOptionsAddElseSubgraphIndex(builder, elseSubgraphIndex): builder.PrependInt32Slot(1, elseSubgraphIndex, 0)
46
+ def IfOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/L2NormOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class L2NormOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsL2NormOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = L2NormOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def L2NormOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # L2NormOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # L2NormOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def L2NormOptionsStart(builder): builder.StartObject(1)
37
+ def L2NormOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
38
+ def L2NormOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LSHProjectionOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LSHProjectionOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLSHProjectionOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LSHProjectionOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LSHProjectionOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LSHProjectionOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # LSHProjectionOptions
30
+ def Type(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def LSHProjectionOptionsStart(builder): builder.StartObject(1)
37
+ def LSHProjectionOptionsAddType(builder, type): builder.PrependInt8Slot(0, type, 0)
38
+ def LSHProjectionOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LSHProjectionType.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ class LSHProjectionType(object):
8
+ UNKNOWN = 0
9
+ SPARSE = 1
10
+ DENSE = 2
11
+
lib/python3.10/site-packages/tf2onnx/tflite/LSTMKernelType.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ class LSTMKernelType(object):
8
+ FULL = 0
9
+ BASIC = 1
10
+
lib/python3.10/site-packages/tf2onnx/tflite/LSTMOptions.py ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LSTMOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLSTMOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LSTMOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LSTMOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LSTMOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # LSTMOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # LSTMOptions
37
+ def CellClip(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
41
+ return 0.0
42
+
43
+ # LSTMOptions
44
+ def ProjClip(self):
45
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
46
+ if o != 0:
47
+ return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
48
+ return 0.0
49
+
50
+ # LSTMOptions
51
+ def KernelType(self):
52
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
53
+ if o != 0:
54
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
55
+ return 0
56
+
57
+ # LSTMOptions
58
+ def AsymmetricQuantizeInputs(self):
59
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
60
+ if o != 0:
61
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
62
+ return False
63
+
64
+ def LSTMOptionsStart(builder): builder.StartObject(5)
65
+ def LSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
66
+ def LSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0)
67
+ def LSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0)
68
+ def LSTMOptionsAddKernelType(builder, kernelType): builder.PrependInt8Slot(3, kernelType, 0)
69
+ def LSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(4, asymmetricQuantizeInputs, 0)
70
+ def LSTMOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LeakyReluOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LeakyReluOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLeakyReluOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LeakyReluOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LeakyReluOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LeakyReluOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # LeakyReluOptions
30
+ def Alpha(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos)
34
+ return 0.0
35
+
36
+ def LeakyReluOptionsStart(builder): builder.StartObject(1)
37
+ def LeakyReluOptionsAddAlpha(builder, alpha): builder.PrependFloat32Slot(0, alpha, 0.0)
38
+ def LeakyReluOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LessOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LessOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLessOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LessOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LessOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LessOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def LessOptionsStart(builder): builder.StartObject(0)
30
+ def LessOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LogSoftmaxOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LogSoftmaxOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLogSoftmaxOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LogSoftmaxOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LogSoftmaxOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LogSoftmaxOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def LogSoftmaxOptionsStart(builder): builder.StartObject(0)
30
+ def LogSoftmaxOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LogicalAndOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LogicalAndOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLogicalAndOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LogicalAndOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LogicalAndOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LogicalAndOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def LogicalAndOptionsStart(builder): builder.StartObject(0)
30
+ def LogicalAndOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/LogicalOrOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class LogicalOrOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsLogicalOrOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = LogicalOrOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def LogicalOrOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # LogicalOrOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def LogicalOrOptionsStart(builder): builder.StartObject(0)
30
+ def LogicalOrOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/MatrixDiagOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class MatrixDiagOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsMatrixDiagOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = MatrixDiagOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def MatrixDiagOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # MatrixDiagOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def MatrixDiagOptionsStart(builder): builder.StartObject(0)
30
+ def MatrixDiagOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/MatrixSetDiagOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class MatrixSetDiagOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsMatrixSetDiagOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = MatrixSetDiagOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def MatrixSetDiagOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # MatrixSetDiagOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def MatrixSetDiagOptionsStart(builder): builder.StartObject(0)
30
+ def MatrixSetDiagOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/Metadata.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class Metadata(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsMetadata(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = Metadata()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def MetadataBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # Metadata
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # Metadata
30
+ def Name(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.String(o + self._tab.Pos)
34
+ return None
35
+
36
+ # Metadata
37
+ def Buffer(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
41
+ return 0
42
+
43
+ def MetadataStart(builder): builder.StartObject(2)
44
+ def MetadataAddName(builder, name): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0)
45
+ def MetadataAddBuffer(builder, buffer): builder.PrependUint32Slot(1, buffer, 0)
46
+ def MetadataEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/MulOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class MulOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsMulOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = MulOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def MulOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # MulOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # MulOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def MulOptionsStart(builder): builder.StartObject(1)
37
+ def MulOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
38
+ def MulOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/NegOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class NegOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsNegOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = NegOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def NegOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # NegOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def NegOptionsStart(builder): builder.StartObject(0)
30
+ def NegOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/NonMaxSuppressionV4Options.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class NonMaxSuppressionV4Options(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsNonMaxSuppressionV4Options(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = NonMaxSuppressionV4Options()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def NonMaxSuppressionV4OptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # NonMaxSuppressionV4Options
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def NonMaxSuppressionV4OptionsStart(builder): builder.StartObject(0)
30
+ def NonMaxSuppressionV4OptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/OneHotOptions.py ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class OneHotOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsOneHotOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = OneHotOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def OneHotOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # OneHotOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # OneHotOptions
30
+ def Axis(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ def OneHotOptionsStart(builder): builder.StartObject(1)
37
+ def OneHotOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0)
38
+ def OneHotOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/Operator.py ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class Operator(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsOperator(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = Operator()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def OperatorBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # Operator
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # Operator
30
+ def OpcodeIndex(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # Operator
37
+ def Inputs(self, j):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ a = self._tab.Vector(o)
41
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
42
+ return 0
43
+
44
+ # Operator
45
+ def InputsAsNumpy(self):
46
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
47
+ if o != 0:
48
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
49
+ return 0
50
+
51
+ # Operator
52
+ def InputsLength(self):
53
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
54
+ if o != 0:
55
+ return self._tab.VectorLen(o)
56
+ return 0
57
+
58
+ # Operator
59
+ def InputsIsNone(self):
60
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
61
+ return o == 0
62
+
63
+ # Operator
64
+ def Outputs(self, j):
65
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
66
+ if o != 0:
67
+ a = self._tab.Vector(o)
68
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
69
+ return 0
70
+
71
+ # Operator
72
+ def OutputsAsNumpy(self):
73
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
74
+ if o != 0:
75
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
76
+ return 0
77
+
78
+ # Operator
79
+ def OutputsLength(self):
80
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
81
+ if o != 0:
82
+ return self._tab.VectorLen(o)
83
+ return 0
84
+
85
+ # Operator
86
+ def OutputsIsNone(self):
87
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
88
+ return o == 0
89
+
90
+ # Operator
91
+ def BuiltinOptionsType(self):
92
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
93
+ if o != 0:
94
+ return self._tab.Get(flatbuffers.number_types.Uint8Flags, o + self._tab.Pos)
95
+ return 0
96
+
97
+ # Operator
98
+ def BuiltinOptions(self):
99
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
100
+ if o != 0:
101
+ from flatbuffers.table import Table
102
+ obj = Table(bytearray(), 0)
103
+ self._tab.Union(obj, o)
104
+ return obj
105
+ return None
106
+
107
+ # Operator
108
+ def CustomOptions(self, j):
109
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
110
+ if o != 0:
111
+ a = self._tab.Vector(o)
112
+ return self._tab.Get(flatbuffers.number_types.Uint8Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1))
113
+ return 0
114
+
115
+ # Operator
116
+ def CustomOptionsAsNumpy(self):
117
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
118
+ if o != 0:
119
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Uint8Flags, o)
120
+ return 0
121
+
122
+ # Operator
123
+ def CustomOptionsLength(self):
124
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
125
+ if o != 0:
126
+ return self._tab.VectorLen(o)
127
+ return 0
128
+
129
+ # Operator
130
+ def CustomOptionsIsNone(self):
131
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
132
+ return o == 0
133
+
134
+ # Operator
135
+ def CustomOptionsFormat(self):
136
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
137
+ if o != 0:
138
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
139
+ return 0
140
+
141
+ # Operator
142
+ def MutatingVariableInputs(self, j):
143
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
144
+ if o != 0:
145
+ a = self._tab.Vector(o)
146
+ return self._tab.Get(flatbuffers.number_types.BoolFlags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 1))
147
+ return 0
148
+
149
+ # Operator
150
+ def MutatingVariableInputsAsNumpy(self):
151
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
152
+ if o != 0:
153
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.BoolFlags, o)
154
+ return 0
155
+
156
+ # Operator
157
+ def MutatingVariableInputsLength(self):
158
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
159
+ if o != 0:
160
+ return self._tab.VectorLen(o)
161
+ return 0
162
+
163
+ # Operator
164
+ def MutatingVariableInputsIsNone(self):
165
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
166
+ return o == 0
167
+
168
+ # Operator
169
+ def Intermediates(self, j):
170
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
171
+ if o != 0:
172
+ a = self._tab.Vector(o)
173
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4))
174
+ return 0
175
+
176
+ # Operator
177
+ def IntermediatesAsNumpy(self):
178
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
179
+ if o != 0:
180
+ return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Int32Flags, o)
181
+ return 0
182
+
183
+ # Operator
184
+ def IntermediatesLength(self):
185
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
186
+ if o != 0:
187
+ return self._tab.VectorLen(o)
188
+ return 0
189
+
190
+ # Operator
191
+ def IntermediatesIsNone(self):
192
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
193
+ return o == 0
194
+
195
+ def OperatorStart(builder): builder.StartObject(9)
196
+ def OperatorAddOpcodeIndex(builder, opcodeIndex): builder.PrependUint32Slot(0, opcodeIndex, 0)
197
+ def OperatorAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0)
198
+ def OperatorStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4)
199
+ def OperatorAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0)
200
+ def OperatorStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4)
201
+ def OperatorAddBuiltinOptionsType(builder, builtinOptionsType): builder.PrependUint8Slot(3, builtinOptionsType, 0)
202
+ def OperatorAddBuiltinOptions(builder, builtinOptions): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(builtinOptions), 0)
203
+ def OperatorAddCustomOptions(builder, customOptions): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(customOptions), 0)
204
+ def OperatorStartCustomOptionsVector(builder, numElems): return builder.StartVector(1, numElems, 1)
205
+ def OperatorAddCustomOptionsFormat(builder, customOptionsFormat): builder.PrependInt8Slot(6, customOptionsFormat, 0)
206
+ def OperatorAddMutatingVariableInputs(builder, mutatingVariableInputs): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(mutatingVariableInputs), 0)
207
+ def OperatorStartMutatingVariableInputsVector(builder, numElems): return builder.StartVector(1, numElems, 1)
208
+ def OperatorAddIntermediates(builder, intermediates): builder.PrependUOffsetTRelativeSlot(8, flatbuffers.number_types.UOffsetTFlags.py_type(intermediates), 0)
209
+ def OperatorStartIntermediatesVector(builder, numElems): return builder.StartVector(4, numElems, 4)
210
+ def OperatorEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/PackOptions.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class PackOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsPackOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = PackOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def PackOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # PackOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # PackOptions
30
+ def ValuesCount(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # PackOptions
37
+ def Axis(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
41
+ return 0
42
+
43
+ def PackOptionsStart(builder): builder.StartObject(2)
44
+ def PackOptionsAddValuesCount(builder, valuesCount): builder.PrependInt32Slot(0, valuesCount, 0)
45
+ def PackOptionsAddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0)
46
+ def PackOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/PadOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class PadOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsPadOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = PadOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def PadOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # PadOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def PadOptionsStart(builder): builder.StartObject(0)
30
+ def PadOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/PadV2Options.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class PadV2Options(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsPadV2Options(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = PadV2Options()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def PadV2OptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # PadV2Options
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def PadV2OptionsStart(builder): builder.StartObject(0)
30
+ def PadV2OptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/RNNOptions.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class RNNOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsRNNOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = RNNOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def RNNOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # RNNOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ # RNNOptions
30
+ def FusedActivationFunction(self):
31
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
32
+ if o != 0:
33
+ return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos)
34
+ return 0
35
+
36
+ # RNNOptions
37
+ def AsymmetricQuantizeInputs(self):
38
+ o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
39
+ if o != 0:
40
+ return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
41
+ return False
42
+
43
+ def RNNOptionsStart(builder): builder.StartObject(2)
44
+ def RNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0)
45
+ def RNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(1, asymmetricQuantizeInputs, 0)
46
+ def RNNOptionsEnd(builder): return builder.EndObject()
lib/python3.10/site-packages/tf2onnx/tflite/RangeOptions.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SPDX-License-Identifier: Apache-2.0
2
+
3
+ # automatically generated by the FlatBuffers compiler, do not modify
4
+
5
+ # namespace: tflite
6
+
7
+ import flatbuffers
8
+ from flatbuffers.compat import import_numpy
9
+ np = import_numpy()
10
+
11
+ class RangeOptions(object):
12
+ __slots__ = ['_tab']
13
+
14
+ @classmethod
15
+ def GetRootAsRangeOptions(cls, buf, offset):
16
+ n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
17
+ x = RangeOptions()
18
+ x.Init(buf, n + offset)
19
+ return x
20
+
21
+ @classmethod
22
+ def RangeOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False):
23
+ return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed)
24
+
25
+ # RangeOptions
26
+ def Init(self, buf, pos):
27
+ self._tab = flatbuffers.table.Table(buf, pos)
28
+
29
+ def RangeOptionsStart(builder): builder.StartObject(0)
30
+ def RangeOptionsEnd(builder): return builder.EndObject()