diff options
author | Rickard Bolin <rickard.bolin@arm.com> | 2022-04-21 07:36:55 +0000 |
---|---|---|
committer | Rickard Bolin <rickard.bolin@arm.com> | 2022-04-27 07:49:36 +0000 |
commit | d66f80170e3dc46e6962970b71886010559b1b75 (patch) | |
tree | a8efaa8cb3f07f16758086e29f9114b1ca40e870 /ethosu/vela | |
parent | a2ec5aa747633da72b6310ce7e5552c39f7f54bb (diff) | |
download | ethos-u-vela-d66f80170e3dc46e6962970b71886010559b1b75.tar.gz |
MLBEDSW-6425: Update to TensorFlow 2.8
Update the flatbuffers generated code to comply with TensorFlow 2.8
Signed-off-by: Rickard Bolin <rickard.bolin@arm.com>
Change-Id: Ia65325b88745e49dbafa803a38c0ea0e7d0478ba
Diffstat (limited to 'ethosu/vela')
149 files changed, 2215 insertions, 1505 deletions
diff --git a/ethosu/vela/operation.py b/ethosu/vela/operation.py index 845d70b5..8e06b1ef 100644 --- a/ethosu/vela/operation.py +++ b/ethosu/vela/operation.py @@ -314,6 +314,11 @@ class Op(Enum): AssignVariable = OperatorInfo() BroadcastArgs = OperatorInfo() RandomStandardNormal = OperatorInfo() + Bucketize = OperatorInfo() + RandomUniform = OperatorInfo() + Multinomial = OperatorInfo() + Gelu = OperatorInfo() + DynamicUpdateSlice = OperatorInfo() @property def info(self): diff --git a/ethosu/vela/tflite/AbsOptions.py b/ethosu/vela/tflite/AbsOptions.py index df140416..4c259ac8 100644 --- a/ethosu/vela/tflite/AbsOptions.py +++ b/ethosu/vela/tflite/AbsOptions.py @@ -28,9 +28,11 @@ class AbsOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def AbsOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return AbsOptionsStart(builder) -def AbsOptionsEnd(builder): return builder.EndObject() -def End(builder): - return AbsOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def AbsOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def AbsOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ActivationFunctionType.py b/ethosu/vela/tflite/ActivationFunctionType.py index 6d8ec952..dc177dee 100644 --- a/ethosu/vela/tflite/ActivationFunctionType.py +++ b/ethosu/vela/tflite/ActivationFunctionType.py @@ -9,3 +9,4 @@ class ActivationFunctionType(object): RELU6 = 3 TANH = 4 SIGN_BIT = 5 + diff --git a/ethosu/vela/tflite/AddNOptions.py b/ethosu/vela/tflite/AddNOptions.py index d3b233d8..8d1381f7 100644 --- a/ethosu/vela/tflite/AddNOptions.py +++ b/ethosu/vela/tflite/AddNOptions.py @@ -28,9 +28,11 @@ class AddNOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def AddNOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return AddNOptionsStart(builder) -def AddNOptionsEnd(builder): return builder.EndObject() -def End(builder): - return AddNOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def AddNOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def AddNOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/AddOptions.py b/ethosu/vela/tflite/AddOptions.py index d8a11051..dfb12b3e 100644 --- a/ethosu/vela/tflite/AddOptions.py +++ b/ethosu/vela/tflite/AddOptions.py @@ -42,15 +42,19 @@ class AddOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return True -def AddOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return AddOptionsStart(builder) -def AddOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return AddOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def AddOptionsAddPotScaleInt16(builder, potScaleInt16): builder.PrependBoolSlot(1, potScaleInt16, 1) -def AddPotScaleInt16(builder, potScaleInt16): - return AddOptionsAddPotScaleInt16(builder, potScaleInt16) -def AddOptionsEnd(builder): return builder.EndObject() -def End(builder): - return AddOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def AddOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def AddOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddPotScaleInt16(builder, potScaleInt16): builder.PrependBoolSlot(1, potScaleInt16, 1) +def AddOptionsAddPotScaleInt16(builder, potScaleInt16): + """This method is deprecated. Please switch to AddPotScaleInt16.""" + return AddPotScaleInt16(builder, potScaleInt16) +def End(builder): return builder.EndObject() +def AddOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ArgMaxOptions.py b/ethosu/vela/tflite/ArgMaxOptions.py index a4728fbb..e2f02667 100644 --- a/ethosu/vela/tflite/ArgMaxOptions.py +++ b/ethosu/vela/tflite/ArgMaxOptions.py @@ -35,12 +35,15 @@ class ArgMaxOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def ArgMaxOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return ArgMaxOptionsStart(builder) -def ArgMaxOptionsAddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) -def AddOutputType(builder, outputType): - return ArgMaxOptionsAddOutputType(builder, outputType) -def ArgMaxOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ArgMaxOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def ArgMaxOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) +def ArgMaxOptionsAddOutputType(builder, outputType): + """This method is deprecated. Please switch to AddOutputType.""" + return AddOutputType(builder, outputType) +def End(builder): return builder.EndObject() +def ArgMaxOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ArgMinOptions.py b/ethosu/vela/tflite/ArgMinOptions.py index adcdc39c..ffe6c982 100644 --- a/ethosu/vela/tflite/ArgMinOptions.py +++ b/ethosu/vela/tflite/ArgMinOptions.py @@ -35,12 +35,15 @@ class ArgMinOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def ArgMinOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return ArgMinOptionsStart(builder) -def ArgMinOptionsAddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) -def AddOutputType(builder, outputType): - return ArgMinOptionsAddOutputType(builder, outputType) -def ArgMinOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ArgMinOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def ArgMinOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddOutputType(builder, outputType): builder.PrependInt8Slot(0, outputType, 0) +def ArgMinOptionsAddOutputType(builder, outputType): + """This method is deprecated. Please switch to AddOutputType.""" + return AddOutputType(builder, outputType) +def End(builder): return builder.EndObject() +def ArgMinOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/AssignVariableOptions.py b/ethosu/vela/tflite/AssignVariableOptions.py index a06c6291..813ff5e6 100644 --- a/ethosu/vela/tflite/AssignVariableOptions.py +++ b/ethosu/vela/tflite/AssignVariableOptions.py @@ -28,9 +28,11 @@ class AssignVariableOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def AssignVariableOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return AssignVariableOptionsStart(builder) -def AssignVariableOptionsEnd(builder): return builder.EndObject() -def End(builder): - return AssignVariableOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def AssignVariableOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def AssignVariableOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BatchMatMulOptions.py b/ethosu/vela/tflite/BatchMatMulOptions.py index 061bb0c8..a093ee5e 100644 --- a/ethosu/vela/tflite/BatchMatMulOptions.py +++ b/ethosu/vela/tflite/BatchMatMulOptions.py @@ -49,18 +49,23 @@ class BatchMatMulOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def BatchMatMulOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return BatchMatMulOptionsStart(builder) -def BatchMatMulOptionsAddAdjX(builder, adjX): builder.PrependBoolSlot(0, adjX, 0) -def AddAdjX(builder, adjX): - return BatchMatMulOptionsAddAdjX(builder, adjX) -def BatchMatMulOptionsAddAdjY(builder, adjY): builder.PrependBoolSlot(1, adjY, 0) -def AddAdjY(builder, adjY): - return BatchMatMulOptionsAddAdjY(builder, adjY) -def BatchMatMulOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(2, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return BatchMatMulOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def BatchMatMulOptionsEnd(builder): return builder.EndObject() -def End(builder): - return BatchMatMulOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def BatchMatMulOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAdjX(builder, adjX): builder.PrependBoolSlot(0, adjX, 0) +def BatchMatMulOptionsAddAdjX(builder, adjX): + """This method is deprecated. Please switch to AddAdjX.""" + return AddAdjX(builder, adjX) +def AddAdjY(builder, adjY): builder.PrependBoolSlot(1, adjY, 0) +def BatchMatMulOptionsAddAdjY(builder, adjY): + """This method is deprecated. Please switch to AddAdjY.""" + return AddAdjY(builder, adjY) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(2, asymmetricQuantizeInputs, 0) +def BatchMatMulOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def BatchMatMulOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BatchToSpaceNDOptions.py b/ethosu/vela/tflite/BatchToSpaceNDOptions.py index f07813cd..c6df0350 100644 --- a/ethosu/vela/tflite/BatchToSpaceNDOptions.py +++ b/ethosu/vela/tflite/BatchToSpaceNDOptions.py @@ -28,9 +28,11 @@ class BatchToSpaceNDOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def BatchToSpaceNDOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return BatchToSpaceNDOptionsStart(builder) -def BatchToSpaceNDOptionsEnd(builder): return builder.EndObject() -def End(builder): - return BatchToSpaceNDOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def BatchToSpaceNDOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def BatchToSpaceNDOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BidirectionalSequenceLSTMOptions.py b/ethosu/vela/tflite/BidirectionalSequenceLSTMOptions.py index 25c0c281..f24b311e 100644 --- a/ethosu/vela/tflite/BidirectionalSequenceLSTMOptions.py +++ b/ethosu/vela/tflite/BidirectionalSequenceLSTMOptions.py @@ -70,27 +70,35 @@ class BidirectionalSequenceLSTMOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def BidirectionalSequenceLSTMOptionsStart(builder): builder.StartObject(6) -def Start(builder): - return BidirectionalSequenceLSTMOptionsStart(builder) -def BidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return BidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def BidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) -def AddCellClip(builder, cellClip): - return BidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip) -def BidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) -def AddProjClip(builder, projClip): - return BidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip) -def BidirectionalSequenceLSTMOptionsAddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(3, mergeOutputs, 0) -def AddMergeOutputs(builder, mergeOutputs): - return BidirectionalSequenceLSTMOptionsAddMergeOutputs(builder, mergeOutputs) -def BidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(4, timeMajor, 1) -def AddTimeMajor(builder, timeMajor): - return BidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor) -def BidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(5, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return BidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def BidirectionalSequenceLSTMOptionsEnd(builder): return builder.EndObject() -def End(builder): - return BidirectionalSequenceLSTMOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(6) +def BidirectionalSequenceLSTMOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def BidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) +def BidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): + """This method is deprecated. Please switch to AddCellClip.""" + return AddCellClip(builder, cellClip) +def AddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) +def BidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): + """This method is deprecated. Please switch to AddProjClip.""" + return AddProjClip(builder, projClip) +def AddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(3, mergeOutputs, 0) +def BidirectionalSequenceLSTMOptionsAddMergeOutputs(builder, mergeOutputs): + """This method is deprecated. Please switch to AddMergeOutputs.""" + return AddMergeOutputs(builder, mergeOutputs) +def AddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(4, timeMajor, 1) +def BidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): + """This method is deprecated. Please switch to AddTimeMajor.""" + return AddTimeMajor(builder, timeMajor) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(5, asymmetricQuantizeInputs, 0) +def BidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def BidirectionalSequenceLSTMOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BidirectionalSequenceRNNOptions.py b/ethosu/vela/tflite/BidirectionalSequenceRNNOptions.py index 67c89c8c..9e15c4b9 100644 --- a/ethosu/vela/tflite/BidirectionalSequenceRNNOptions.py +++ b/ethosu/vela/tflite/BidirectionalSequenceRNNOptions.py @@ -56,21 +56,27 @@ class BidirectionalSequenceRNNOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def BidirectionalSequenceRNNOptionsStart(builder): builder.StartObject(4) -def Start(builder): - return BidirectionalSequenceRNNOptionsStart(builder) -def BidirectionalSequenceRNNOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0) -def AddTimeMajor(builder, timeMajor): - return BidirectionalSequenceRNNOptionsAddTimeMajor(builder, timeMajor) -def BidirectionalSequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return BidirectionalSequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def BidirectionalSequenceRNNOptionsAddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(2, mergeOutputs, 0) -def AddMergeOutputs(builder, mergeOutputs): - return BidirectionalSequenceRNNOptionsAddMergeOutputs(builder, mergeOutputs) -def BidirectionalSequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(3, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return BidirectionalSequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def BidirectionalSequenceRNNOptionsEnd(builder): return builder.EndObject() -def End(builder): - return BidirectionalSequenceRNNOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(4) +def BidirectionalSequenceRNNOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0) +def BidirectionalSequenceRNNOptionsAddTimeMajor(builder, timeMajor): + """This method is deprecated. Please switch to AddTimeMajor.""" + return AddTimeMajor(builder, timeMajor) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) +def BidirectionalSequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddMergeOutputs(builder, mergeOutputs): builder.PrependBoolSlot(2, mergeOutputs, 0) +def BidirectionalSequenceRNNOptionsAddMergeOutputs(builder, mergeOutputs): + """This method is deprecated. Please switch to AddMergeOutputs.""" + return AddMergeOutputs(builder, mergeOutputs) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(3, asymmetricQuantizeInputs, 0) +def BidirectionalSequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def BidirectionalSequenceRNNOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BroadcastToOptions.py b/ethosu/vela/tflite/BroadcastToOptions.py index a7f2c707..55afcfac 100644 --- a/ethosu/vela/tflite/BroadcastToOptions.py +++ b/ethosu/vela/tflite/BroadcastToOptions.py @@ -28,9 +28,11 @@ class BroadcastToOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def BroadcastToOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return BroadcastToOptionsStart(builder) -def BroadcastToOptionsEnd(builder): return builder.EndObject() -def End(builder): - return BroadcastToOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def BroadcastToOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def BroadcastToOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BucketizeOptions.py b/ethosu/vela/tflite/BucketizeOptions.py new file mode 100644 index 00000000..e54d8294 --- /dev/null +++ b/ethosu/vela/tflite/BucketizeOptions.py @@ -0,0 +1,73 @@ +# automatically generated by the FlatBuffers compiler, do not modify + +# namespace: tflite + +import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() + +class BucketizeOptions(object): + __slots__ = ['_tab'] + + @classmethod + def GetRootAs(cls, buf, offset=0): + n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) + x = BucketizeOptions() + x.Init(buf, n + offset) + return x + + @classmethod + def GetRootAsBucketizeOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod + def BucketizeOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): + return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) + + # BucketizeOptions + def Init(self, buf, pos): + self._tab = flatbuffers.table.Table(buf, pos) + + # BucketizeOptions + def Boundaries(self, j): + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) + if o != 0: + a = self._tab.Vector(o) + return self._tab.Get(flatbuffers.number_types.Float32Flags, a + flatbuffers.number_types.UOffsetTFlags.py_type(j * 4)) + return 0 + + # BucketizeOptions + def BoundariesAsNumpy(self): + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) + if o != 0: + return self._tab.GetVectorAsNumpy(flatbuffers.number_types.Float32Flags, o) + return 0 + + # BucketizeOptions + def BoundariesLength(self): + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) + if o != 0: + return self._tab.VectorLen(o) + return 0 + + # BucketizeOptions + def BoundariesIsNone(self): + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) + return o == 0 + +def Start(builder): builder.StartObject(1) +def BucketizeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddBoundaries(builder, boundaries): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(boundaries), 0) +def BucketizeOptionsAddBoundaries(builder, boundaries): + """This method is deprecated. Please switch to AddBoundaries.""" + return AddBoundaries(builder, boundaries) +def StartBoundariesVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def BucketizeOptionsStartBoundariesVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartBoundariesVector(builder, numElems) +def End(builder): return builder.EndObject() +def BucketizeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Buffer.py b/ethosu/vela/tflite/Buffer.py index e9d45a51..ea2abede 100644 --- a/ethosu/vela/tflite/Buffer.py +++ b/ethosu/vela/tflite/Buffer.py @@ -55,15 +55,19 @@ class Buffer(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def BufferStart(builder): builder.StartObject(1) -def Start(builder): - return BufferStart(builder) -def BufferAddData(builder, data): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(data), 0) -def AddData(builder, data): - return BufferAddData(builder, data) -def BufferStartDataVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def StartDataVector(builder, numElems): - return BufferStartDataVector(builder, numElems) -def BufferEnd(builder): return builder.EndObject() -def End(builder): - return BufferEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def BufferStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddData(builder, data): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(data), 0) +def BufferAddData(builder, data): + """This method is deprecated. Please switch to AddData.""" + return AddData(builder, data) +def StartDataVector(builder, numElems): return builder.StartVector(1, numElems, 1) +def BufferStartDataVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartDataVector(builder, numElems) +def End(builder): return builder.EndObject() +def BufferEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/BuiltinOperator.py b/ethosu/vela/tflite/BuiltinOperator.py index 47ff6d09..5ddcf202 100644 --- a/ethosu/vela/tflite/BuiltinOperator.py +++ b/ethosu/vela/tflite/BuiltinOperator.py @@ -150,3 +150,9 @@ class BuiltinOperator(object): ASSIGN_VARIABLE = 144 BROADCAST_ARGS = 145 RANDOM_STANDARD_NORMAL = 146 + BUCKETIZE = 147 + RANDOM_UNIFORM = 148 + MULTINOMIAL = 149 + GELU = 150 + DYNAMIC_UPDATE_SLICE = 151 + diff --git a/ethosu/vela/tflite/BuiltinOptions.py b/ethosu/vela/tflite/BuiltinOptions.py index 120e9b88..4358605c 100644 --- a/ethosu/vela/tflite/BuiltinOptions.py +++ b/ethosu/vela/tflite/BuiltinOptions.py @@ -118,3 +118,7 @@ class BuiltinOptions(object): ReadVariableOptions = 112 AssignVariableOptions = 113 RandomOptions = 114 + BucketizeOptions = 115 + GeluOptions = 116 + DynamicUpdateSliceOptions = 117 + diff --git a/ethosu/vela/tflite/CallOnceOptions.py b/ethosu/vela/tflite/CallOnceOptions.py index 557979de..f43715fa 100644 --- a/ethosu/vela/tflite/CallOnceOptions.py +++ b/ethosu/vela/tflite/CallOnceOptions.py @@ -35,12 +35,15 @@ class CallOnceOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def CallOnceOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return CallOnceOptionsStart(builder) -def CallOnceOptionsAddInitSubgraphIndex(builder, initSubgraphIndex): builder.PrependInt32Slot(0, initSubgraphIndex, 0) -def AddInitSubgraphIndex(builder, initSubgraphIndex): - return CallOnceOptionsAddInitSubgraphIndex(builder, initSubgraphIndex) -def CallOnceOptionsEnd(builder): return builder.EndObject() -def End(builder): - return CallOnceOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def CallOnceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddInitSubgraphIndex(builder, initSubgraphIndex): builder.PrependInt32Slot(0, initSubgraphIndex, 0) +def CallOnceOptionsAddInitSubgraphIndex(builder, initSubgraphIndex): + """This method is deprecated. Please switch to AddInitSubgraphIndex.""" + return AddInitSubgraphIndex(builder, initSubgraphIndex) +def End(builder): return builder.EndObject() +def CallOnceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/CallOptions.py b/ethosu/vela/tflite/CallOptions.py index 7fa3b555..c3b2eec4 100644 --- a/ethosu/vela/tflite/CallOptions.py +++ b/ethosu/vela/tflite/CallOptions.py @@ -35,12 +35,15 @@ class CallOptions(object): return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) return 0 -def CallOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return CallOptionsStart(builder) -def CallOptionsAddSubgraph(builder, subgraph): builder.PrependUint32Slot(0, subgraph, 0) -def AddSubgraph(builder, subgraph): - return CallOptionsAddSubgraph(builder, subgraph) -def CallOptionsEnd(builder): return builder.EndObject() -def End(builder): - return CallOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def CallOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddSubgraph(builder, subgraph): builder.PrependUint32Slot(0, subgraph, 0) +def CallOptionsAddSubgraph(builder, subgraph): + """This method is deprecated. Please switch to AddSubgraph.""" + return AddSubgraph(builder, subgraph) +def End(builder): return builder.EndObject() +def CallOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/CastOptions.py b/ethosu/vela/tflite/CastOptions.py index e97ac8ef..9060b51f 100644 --- a/ethosu/vela/tflite/CastOptions.py +++ b/ethosu/vela/tflite/CastOptions.py @@ -42,15 +42,19 @@ class CastOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def CastOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return CastOptionsStart(builder) -def CastOptionsAddInDataType(builder, inDataType): builder.PrependInt8Slot(0, inDataType, 0) -def AddInDataType(builder, inDataType): - return CastOptionsAddInDataType(builder, inDataType) -def CastOptionsAddOutDataType(builder, outDataType): builder.PrependInt8Slot(1, outDataType, 0) -def AddOutDataType(builder, outDataType): - return CastOptionsAddOutDataType(builder, outDataType) -def CastOptionsEnd(builder): return builder.EndObject() -def End(builder): - return CastOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def CastOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddInDataType(builder, inDataType): builder.PrependInt8Slot(0, inDataType, 0) +def CastOptionsAddInDataType(builder, inDataType): + """This method is deprecated. Please switch to AddInDataType.""" + return AddInDataType(builder, inDataType) +def AddOutDataType(builder, outDataType): builder.PrependInt8Slot(1, outDataType, 0) +def CastOptionsAddOutDataType(builder, outDataType): + """This method is deprecated. Please switch to AddOutDataType.""" + return AddOutDataType(builder, outDataType) +def End(builder): return builder.EndObject() +def CastOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/CombinerType.py b/ethosu/vela/tflite/CombinerType.py index 1e3a61f3..17d91510 100644 --- a/ethosu/vela/tflite/CombinerType.py +++ b/ethosu/vela/tflite/CombinerType.py @@ -6,3 +6,4 @@ class CombinerType(object): SUM = 0 MEAN = 1 SQRTN = 2 + diff --git a/ethosu/vela/tflite/ConcatEmbeddingsOptions.py b/ethosu/vela/tflite/ConcatEmbeddingsOptions.py index e59bf9b6..250f7544 100644 --- a/ethosu/vela/tflite/ConcatEmbeddingsOptions.py +++ b/ethosu/vela/tflite/ConcatEmbeddingsOptions.py @@ -89,24 +89,31 @@ class ConcatEmbeddingsOptions(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) return o == 0 -def ConcatEmbeddingsOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return ConcatEmbeddingsOptionsStart(builder) -def ConcatEmbeddingsOptionsAddNumChannels(builder, numChannels): builder.PrependInt32Slot(0, numChannels, 0) -def AddNumChannels(builder, numChannels): - return ConcatEmbeddingsOptionsAddNumChannels(builder, numChannels) -def ConcatEmbeddingsOptionsAddNumColumnsPerChannel(builder, numColumnsPerChannel): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(numColumnsPerChannel), 0) -def AddNumColumnsPerChannel(builder, numColumnsPerChannel): - return ConcatEmbeddingsOptionsAddNumColumnsPerChannel(builder, numColumnsPerChannel) -def ConcatEmbeddingsOptionsStartNumColumnsPerChannelVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartNumColumnsPerChannelVector(builder, numElems): - return ConcatEmbeddingsOptionsStartNumColumnsPerChannelVector(builder, numElems) -def ConcatEmbeddingsOptionsAddEmbeddingDimPerChannel(builder, embeddingDimPerChannel): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(embeddingDimPerChannel), 0) -def AddEmbeddingDimPerChannel(builder, embeddingDimPerChannel): - return ConcatEmbeddingsOptionsAddEmbeddingDimPerChannel(builder, embeddingDimPerChannel) -def ConcatEmbeddingsOptionsStartEmbeddingDimPerChannelVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartEmbeddingDimPerChannelVector(builder, numElems): - return ConcatEmbeddingsOptionsStartEmbeddingDimPerChannelVector(builder, numElems) -def ConcatEmbeddingsOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ConcatEmbeddingsOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def ConcatEmbeddingsOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddNumChannels(builder, numChannels): builder.PrependInt32Slot(0, numChannels, 0) +def ConcatEmbeddingsOptionsAddNumChannels(builder, numChannels): + """This method is deprecated. Please switch to AddNumChannels.""" + return AddNumChannels(builder, numChannels) +def AddNumColumnsPerChannel(builder, numColumnsPerChannel): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(numColumnsPerChannel), 0) +def ConcatEmbeddingsOptionsAddNumColumnsPerChannel(builder, numColumnsPerChannel): + """This method is deprecated. Please switch to AddNumColumnsPerChannel.""" + return AddNumColumnsPerChannel(builder, numColumnsPerChannel) +def StartNumColumnsPerChannelVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ConcatEmbeddingsOptionsStartNumColumnsPerChannelVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartNumColumnsPerChannelVector(builder, numElems) +def AddEmbeddingDimPerChannel(builder, embeddingDimPerChannel): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(embeddingDimPerChannel), 0) +def ConcatEmbeddingsOptionsAddEmbeddingDimPerChannel(builder, embeddingDimPerChannel): + """This method is deprecated. Please switch to AddEmbeddingDimPerChannel.""" + return AddEmbeddingDimPerChannel(builder, embeddingDimPerChannel) +def StartEmbeddingDimPerChannelVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ConcatEmbeddingsOptionsStartEmbeddingDimPerChannelVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartEmbeddingDimPerChannelVector(builder, numElems) +def End(builder): return builder.EndObject() +def ConcatEmbeddingsOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ConcatenationOptions.py b/ethosu/vela/tflite/ConcatenationOptions.py index 5016a24e..19f76800 100644 --- a/ethosu/vela/tflite/ConcatenationOptions.py +++ b/ethosu/vela/tflite/ConcatenationOptions.py @@ -42,15 +42,19 @@ class ConcatenationOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def ConcatenationOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return ConcatenationOptionsStart(builder) -def ConcatenationOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) -def AddAxis(builder, axis): - return ConcatenationOptionsAddAxis(builder, axis) -def ConcatenationOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return ConcatenationOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def ConcatenationOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ConcatenationOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def ConcatenationOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) +def ConcatenationOptionsAddAxis(builder, axis): + """This method is deprecated. Please switch to AddAxis.""" + return AddAxis(builder, axis) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) +def ConcatenationOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def End(builder): return builder.EndObject() +def ConcatenationOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Conv2DOptions.py b/ethosu/vela/tflite/Conv2DOptions.py index 5928009f..33a8569d 100644 --- a/ethosu/vela/tflite/Conv2DOptions.py +++ b/ethosu/vela/tflite/Conv2DOptions.py @@ -70,27 +70,35 @@ class Conv2DOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 -def Conv2DOptionsStart(builder): builder.StartObject(6) -def Start(builder): - return Conv2DOptionsStart(builder) -def Conv2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def AddPadding(builder, padding): - return Conv2DOptionsAddPadding(builder, padding) -def Conv2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def AddStrideW(builder, strideW): - return Conv2DOptionsAddStrideW(builder, strideW) -def Conv2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def AddStrideH(builder, strideH): - return Conv2DOptionsAddStrideH(builder, strideH) -def Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(3, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def Conv2DOptionsAddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(4, dilationWFactor, 1) -def AddDilationWFactor(builder, dilationWFactor): - return Conv2DOptionsAddDilationWFactor(builder, dilationWFactor) -def Conv2DOptionsAddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(5, dilationHFactor, 1) -def AddDilationHFactor(builder, dilationHFactor): - return Conv2DOptionsAddDilationHFactor(builder, dilationHFactor) -def Conv2DOptionsEnd(builder): return builder.EndObject() -def End(builder): - return Conv2DOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(6) +def Conv2DOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) +def Conv2DOptionsAddPadding(builder, padding): + """This method is deprecated. Please switch to AddPadding.""" + return AddPadding(builder, padding) +def AddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) +def Conv2DOptionsAddStrideW(builder, strideW): + """This method is deprecated. Please switch to AddStrideW.""" + return AddStrideW(builder, strideW) +def AddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) +def Conv2DOptionsAddStrideH(builder, strideH): + """This method is deprecated. Please switch to AddStrideH.""" + return AddStrideH(builder, strideH) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(3, fusedActivationFunction, 0) +def Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(4, dilationWFactor, 1) +def Conv2DOptionsAddDilationWFactor(builder, dilationWFactor): + """This method is deprecated. Please switch to AddDilationWFactor.""" + return AddDilationWFactor(builder, dilationWFactor) +def AddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(5, dilationHFactor, 1) +def Conv2DOptionsAddDilationHFactor(builder, dilationHFactor): + """This method is deprecated. Please switch to AddDilationHFactor.""" + return AddDilationHFactor(builder, dilationHFactor) +def End(builder): return builder.EndObject() +def Conv2DOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Conv3DOptions.py b/ethosu/vela/tflite/Conv3DOptions.py index a4e604d2..849df22e 100644 --- a/ethosu/vela/tflite/Conv3DOptions.py +++ b/ethosu/vela/tflite/Conv3DOptions.py @@ -84,33 +84,43 @@ class Conv3DOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 -def Conv3DOptionsStart(builder): builder.StartObject(8) -def Start(builder): - return Conv3DOptionsStart(builder) -def Conv3DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def AddPadding(builder, padding): - return Conv3DOptionsAddPadding(builder, padding) -def Conv3DOptionsAddStrideD(builder, strideD): builder.PrependInt32Slot(1, strideD, 0) -def AddStrideD(builder, strideD): - return Conv3DOptionsAddStrideD(builder, strideD) -def Conv3DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(2, strideW, 0) -def AddStrideW(builder, strideW): - return Conv3DOptionsAddStrideW(builder, strideW) -def Conv3DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(3, strideH, 0) -def AddStrideH(builder, strideH): - return Conv3DOptionsAddStrideH(builder, strideH) -def Conv3DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(4, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return Conv3DOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def Conv3DOptionsAddDilationDFactor(builder, dilationDFactor): builder.PrependInt32Slot(5, dilationDFactor, 1) -def AddDilationDFactor(builder, dilationDFactor): - return Conv3DOptionsAddDilationDFactor(builder, dilationDFactor) -def Conv3DOptionsAddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(6, dilationWFactor, 1) -def AddDilationWFactor(builder, dilationWFactor): - return Conv3DOptionsAddDilationWFactor(builder, dilationWFactor) -def Conv3DOptionsAddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(7, dilationHFactor, 1) -def AddDilationHFactor(builder, dilationHFactor): - return Conv3DOptionsAddDilationHFactor(builder, dilationHFactor) -def Conv3DOptionsEnd(builder): return builder.EndObject() -def End(builder): - return Conv3DOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(8) +def Conv3DOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) +def Conv3DOptionsAddPadding(builder, padding): + """This method is deprecated. Please switch to AddPadding.""" + return AddPadding(builder, padding) +def AddStrideD(builder, strideD): builder.PrependInt32Slot(1, strideD, 0) +def Conv3DOptionsAddStrideD(builder, strideD): + """This method is deprecated. Please switch to AddStrideD.""" + return AddStrideD(builder, strideD) +def AddStrideW(builder, strideW): builder.PrependInt32Slot(2, strideW, 0) +def Conv3DOptionsAddStrideW(builder, strideW): + """This method is deprecated. Please switch to AddStrideW.""" + return AddStrideW(builder, strideW) +def AddStrideH(builder, strideH): builder.PrependInt32Slot(3, strideH, 0) +def Conv3DOptionsAddStrideH(builder, strideH): + """This method is deprecated. Please switch to AddStrideH.""" + return AddStrideH(builder, strideH) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(4, fusedActivationFunction, 0) +def Conv3DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddDilationDFactor(builder, dilationDFactor): builder.PrependInt32Slot(5, dilationDFactor, 1) +def Conv3DOptionsAddDilationDFactor(builder, dilationDFactor): + """This method is deprecated. Please switch to AddDilationDFactor.""" + return AddDilationDFactor(builder, dilationDFactor) +def AddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(6, dilationWFactor, 1) +def Conv3DOptionsAddDilationWFactor(builder, dilationWFactor): + """This method is deprecated. Please switch to AddDilationWFactor.""" + return AddDilationWFactor(builder, dilationWFactor) +def AddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(7, dilationHFactor, 1) +def Conv3DOptionsAddDilationHFactor(builder, dilationHFactor): + """This method is deprecated. Please switch to AddDilationHFactor.""" + return AddDilationHFactor(builder, dilationHFactor) +def End(builder): return builder.EndObject() +def Conv3DOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/CosOptions.py b/ethosu/vela/tflite/CosOptions.py index e64d5bdd..6f03822a 100644 --- a/ethosu/vela/tflite/CosOptions.py +++ b/ethosu/vela/tflite/CosOptions.py @@ -28,9 +28,11 @@ class CosOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def CosOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return CosOptionsStart(builder) -def CosOptionsEnd(builder): return builder.EndObject() -def End(builder): - return CosOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def CosOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def CosOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/CumsumOptions.py b/ethosu/vela/tflite/CumsumOptions.py index de83dfa3..66410f16 100644 --- a/ethosu/vela/tflite/CumsumOptions.py +++ b/ethosu/vela/tflite/CumsumOptions.py @@ -42,15 +42,19 @@ class CumsumOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def CumsumOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return CumsumOptionsStart(builder) -def CumsumOptionsAddExclusive(builder, exclusive): builder.PrependBoolSlot(0, exclusive, 0) -def AddExclusive(builder, exclusive): - return CumsumOptionsAddExclusive(builder, exclusive) -def CumsumOptionsAddReverse(builder, reverse): builder.PrependBoolSlot(1, reverse, 0) -def AddReverse(builder, reverse): - return CumsumOptionsAddReverse(builder, reverse) -def CumsumOptionsEnd(builder): return builder.EndObject() -def End(builder): - return CumsumOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def CumsumOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddExclusive(builder, exclusive): builder.PrependBoolSlot(0, exclusive, 0) +def CumsumOptionsAddExclusive(builder, exclusive): + """This method is deprecated. Please switch to AddExclusive.""" + return AddExclusive(builder, exclusive) +def AddReverse(builder, reverse): builder.PrependBoolSlot(1, reverse, 0) +def CumsumOptionsAddReverse(builder, reverse): + """This method is deprecated. Please switch to AddReverse.""" + return AddReverse(builder, reverse) +def End(builder): return builder.EndObject() +def CumsumOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/CustomOptionsFormat.py b/ethosu/vela/tflite/CustomOptionsFormat.py index c2fc07c2..bef384cf 100644 --- a/ethosu/vela/tflite/CustomOptionsFormat.py +++ b/ethosu/vela/tflite/CustomOptionsFormat.py @@ -4,3 +4,4 @@ class CustomOptionsFormat(object): FLEXBUFFERS = 0 + diff --git a/ethosu/vela/tflite/CustomQuantization.py b/ethosu/vela/tflite/CustomQuantization.py index 35f0aeaf..c04c280e 100644 --- a/ethosu/vela/tflite/CustomQuantization.py +++ b/ethosu/vela/tflite/CustomQuantization.py @@ -55,15 +55,19 @@ class CustomQuantization(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def CustomQuantizationStart(builder): builder.StartObject(1) -def Start(builder): - return CustomQuantizationStart(builder) -def CustomQuantizationAddCustom(builder, custom): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(custom), 0) -def AddCustom(builder, custom): - return CustomQuantizationAddCustom(builder, custom) -def CustomQuantizationStartCustomVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def StartCustomVector(builder, numElems): - return CustomQuantizationStartCustomVector(builder, numElems) -def CustomQuantizationEnd(builder): return builder.EndObject() -def End(builder): - return CustomQuantizationEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def CustomQuantizationStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddCustom(builder, custom): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(custom), 0) +def CustomQuantizationAddCustom(builder, custom): + """This method is deprecated. Please switch to AddCustom.""" + return AddCustom(builder, custom) +def StartCustomVector(builder, numElems): return builder.StartVector(1, numElems, 1) +def CustomQuantizationStartCustomVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartCustomVector(builder, numElems) +def End(builder): return builder.EndObject() +def CustomQuantizationEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DensifyOptions.py b/ethosu/vela/tflite/DensifyOptions.py index 9b107176..aa8ff7f3 100644 --- a/ethosu/vela/tflite/DensifyOptions.py +++ b/ethosu/vela/tflite/DensifyOptions.py @@ -28,9 +28,11 @@ class DensifyOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def DensifyOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return DensifyOptionsStart(builder) -def DensifyOptionsEnd(builder): return builder.EndObject() -def End(builder): - return DensifyOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def DensifyOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def DensifyOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DepthToSpaceOptions.py b/ethosu/vela/tflite/DepthToSpaceOptions.py index 779da401..46a46e8c 100644 --- a/ethosu/vela/tflite/DepthToSpaceOptions.py +++ b/ethosu/vela/tflite/DepthToSpaceOptions.py @@ -35,12 +35,15 @@ class DepthToSpaceOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def DepthToSpaceOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return DepthToSpaceOptionsStart(builder) -def DepthToSpaceOptionsAddBlockSize(builder, blockSize): builder.PrependInt32Slot(0, blockSize, 0) -def AddBlockSize(builder, blockSize): - return DepthToSpaceOptionsAddBlockSize(builder, blockSize) -def DepthToSpaceOptionsEnd(builder): return builder.EndObject() -def End(builder): - return DepthToSpaceOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def DepthToSpaceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddBlockSize(builder, blockSize): builder.PrependInt32Slot(0, blockSize, 0) +def DepthToSpaceOptionsAddBlockSize(builder, blockSize): + """This method is deprecated. Please switch to AddBlockSize.""" + return AddBlockSize(builder, blockSize) +def End(builder): return builder.EndObject() +def DepthToSpaceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DepthwiseConv2DOptions.py b/ethosu/vela/tflite/DepthwiseConv2DOptions.py index 25ea10ed..9a07d1a8 100644 --- a/ethosu/vela/tflite/DepthwiseConv2DOptions.py +++ b/ethosu/vela/tflite/DepthwiseConv2DOptions.py @@ -77,30 +77,39 @@ class DepthwiseConv2DOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 -def DepthwiseConv2DOptionsStart(builder): builder.StartObject(7) -def Start(builder): - return DepthwiseConv2DOptionsStart(builder) -def DepthwiseConv2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def AddPadding(builder, padding): - return DepthwiseConv2DOptionsAddPadding(builder, padding) -def DepthwiseConv2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def AddStrideW(builder, strideW): - return DepthwiseConv2DOptionsAddStrideW(builder, strideW) -def DepthwiseConv2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def AddStrideH(builder, strideH): - return DepthwiseConv2DOptionsAddStrideH(builder, strideH) -def DepthwiseConv2DOptionsAddDepthMultiplier(builder, depthMultiplier): builder.PrependInt32Slot(3, depthMultiplier, 0) -def AddDepthMultiplier(builder, depthMultiplier): - return DepthwiseConv2DOptionsAddDepthMultiplier(builder, depthMultiplier) -def DepthwiseConv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(4, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return DepthwiseConv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def DepthwiseConv2DOptionsAddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(5, dilationWFactor, 1) -def AddDilationWFactor(builder, dilationWFactor): - return DepthwiseConv2DOptionsAddDilationWFactor(builder, dilationWFactor) -def DepthwiseConv2DOptionsAddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(6, dilationHFactor, 1) -def AddDilationHFactor(builder, dilationHFactor): - return DepthwiseConv2DOptionsAddDilationHFactor(builder, dilationHFactor) -def DepthwiseConv2DOptionsEnd(builder): return builder.EndObject() -def End(builder): - return DepthwiseConv2DOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(7) +def DepthwiseConv2DOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) +def DepthwiseConv2DOptionsAddPadding(builder, padding): + """This method is deprecated. Please switch to AddPadding.""" + return AddPadding(builder, padding) +def AddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) +def DepthwiseConv2DOptionsAddStrideW(builder, strideW): + """This method is deprecated. Please switch to AddStrideW.""" + return AddStrideW(builder, strideW) +def AddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) +def DepthwiseConv2DOptionsAddStrideH(builder, strideH): + """This method is deprecated. Please switch to AddStrideH.""" + return AddStrideH(builder, strideH) +def AddDepthMultiplier(builder, depthMultiplier): builder.PrependInt32Slot(3, depthMultiplier, 0) +def DepthwiseConv2DOptionsAddDepthMultiplier(builder, depthMultiplier): + """This method is deprecated. Please switch to AddDepthMultiplier.""" + return AddDepthMultiplier(builder, depthMultiplier) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(4, fusedActivationFunction, 0) +def DepthwiseConv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(5, dilationWFactor, 1) +def DepthwiseConv2DOptionsAddDilationWFactor(builder, dilationWFactor): + """This method is deprecated. Please switch to AddDilationWFactor.""" + return AddDilationWFactor(builder, dilationWFactor) +def AddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(6, dilationHFactor, 1) +def DepthwiseConv2DOptionsAddDilationHFactor(builder, dilationHFactor): + """This method is deprecated. Please switch to AddDilationHFactor.""" + return AddDilationHFactor(builder, dilationHFactor) +def End(builder): return builder.EndObject() +def DepthwiseConv2DOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DequantizeOptions.py b/ethosu/vela/tflite/DequantizeOptions.py index 8361c375..1eb6842a 100644 --- a/ethosu/vela/tflite/DequantizeOptions.py +++ b/ethosu/vela/tflite/DequantizeOptions.py @@ -28,9 +28,11 @@ class DequantizeOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def DequantizeOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return DequantizeOptionsStart(builder) -def DequantizeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return DequantizeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def DequantizeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def DequantizeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DimensionMetadata.py b/ethosu/vela/tflite/DimensionMetadata.py index d329dd35..86a3cc6b 100644 --- a/ethosu/vela/tflite/DimensionMetadata.py +++ b/ethosu/vela/tflite/DimensionMetadata.py @@ -76,27 +76,35 @@ class DimensionMetadata(object): return obj return None -def DimensionMetadataStart(builder): builder.StartObject(6) -def Start(builder): - return DimensionMetadataStart(builder) -def DimensionMetadataAddFormat(builder, format): builder.PrependInt8Slot(0, format, 0) -def AddFormat(builder, format): - return DimensionMetadataAddFormat(builder, format) -def DimensionMetadataAddDenseSize(builder, denseSize): builder.PrependInt32Slot(1, denseSize, 0) -def AddDenseSize(builder, denseSize): - return DimensionMetadataAddDenseSize(builder, denseSize) -def DimensionMetadataAddArraySegmentsType(builder, arraySegmentsType): builder.PrependUint8Slot(2, arraySegmentsType, 0) -def AddArraySegmentsType(builder, arraySegmentsType): - return DimensionMetadataAddArraySegmentsType(builder, arraySegmentsType) -def DimensionMetadataAddArraySegments(builder, arraySegments): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(arraySegments), 0) -def AddArraySegments(builder, arraySegments): - return DimensionMetadataAddArraySegments(builder, arraySegments) -def DimensionMetadataAddArrayIndicesType(builder, arrayIndicesType): builder.PrependUint8Slot(4, arrayIndicesType, 0) -def AddArrayIndicesType(builder, arrayIndicesType): - return DimensionMetadataAddArrayIndicesType(builder, arrayIndicesType) -def DimensionMetadataAddArrayIndices(builder, arrayIndices): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(arrayIndices), 0) -def AddArrayIndices(builder, arrayIndices): - return DimensionMetadataAddArrayIndices(builder, arrayIndices) -def DimensionMetadataEnd(builder): return builder.EndObject() -def End(builder): - return DimensionMetadataEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(6) +def DimensionMetadataStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFormat(builder, format): builder.PrependInt8Slot(0, format, 0) +def DimensionMetadataAddFormat(builder, format): + """This method is deprecated. Please switch to AddFormat.""" + return AddFormat(builder, format) +def AddDenseSize(builder, denseSize): builder.PrependInt32Slot(1, denseSize, 0) +def DimensionMetadataAddDenseSize(builder, denseSize): + """This method is deprecated. Please switch to AddDenseSize.""" + return AddDenseSize(builder, denseSize) +def AddArraySegmentsType(builder, arraySegmentsType): builder.PrependUint8Slot(2, arraySegmentsType, 0) +def DimensionMetadataAddArraySegmentsType(builder, arraySegmentsType): + """This method is deprecated. Please switch to AddArraySegmentsType.""" + return AddArraySegmentsType(builder, arraySegmentsType) +def AddArraySegments(builder, arraySegments): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(arraySegments), 0) +def DimensionMetadataAddArraySegments(builder, arraySegments): + """This method is deprecated. Please switch to AddArraySegments.""" + return AddArraySegments(builder, arraySegments) +def AddArrayIndicesType(builder, arrayIndicesType): builder.PrependUint8Slot(4, arrayIndicesType, 0) +def DimensionMetadataAddArrayIndicesType(builder, arrayIndicesType): + """This method is deprecated. Please switch to AddArrayIndicesType.""" + return AddArrayIndicesType(builder, arrayIndicesType) +def AddArrayIndices(builder, arrayIndices): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(arrayIndices), 0) +def DimensionMetadataAddArrayIndices(builder, arrayIndices): + """This method is deprecated. Please switch to AddArrayIndices.""" + return AddArrayIndices(builder, arrayIndices) +def End(builder): return builder.EndObject() +def DimensionMetadataEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DimensionType.py b/ethosu/vela/tflite/DimensionType.py index 310d8eed..a27d016f 100644 --- a/ethosu/vela/tflite/DimensionType.py +++ b/ethosu/vela/tflite/DimensionType.py @@ -5,3 +5,4 @@ class DimensionType(object): DENSE = 0 SPARSE_CSR = 1 + diff --git a/ethosu/vela/tflite/DivOptions.py b/ethosu/vela/tflite/DivOptions.py index e6b4e240..d05746ef 100644 --- a/ethosu/vela/tflite/DivOptions.py +++ b/ethosu/vela/tflite/DivOptions.py @@ -35,12 +35,15 @@ class DivOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def DivOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return DivOptionsStart(builder) -def DivOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return DivOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def DivOptionsEnd(builder): return builder.EndObject() -def End(builder): - return DivOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def DivOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def DivOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def End(builder): return builder.EndObject() +def DivOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/DynamicUpdateSliceOptions.py b/ethosu/vela/tflite/DynamicUpdateSliceOptions.py new file mode 100644 index 00000000..232b55d8 --- /dev/null +++ b/ethosu/vela/tflite/DynamicUpdateSliceOptions.py @@ -0,0 +1,38 @@ +# automatically generated by the FlatBuffers compiler, do not modify + +# namespace: tflite + +import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() + +class DynamicUpdateSliceOptions(object): + __slots__ = ['_tab'] + + @classmethod + def GetRootAs(cls, buf, offset=0): + n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) + x = DynamicUpdateSliceOptions() + x.Init(buf, n + offset) + return x + + @classmethod + def GetRootAsDynamicUpdateSliceOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod + def DynamicUpdateSliceOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): + return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) + + # DynamicUpdateSliceOptions + def Init(self, buf, pos): + self._tab = flatbuffers.table.Table(buf, pos) + +def Start(builder): builder.StartObject(0) +def DynamicUpdateSliceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def DynamicUpdateSliceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py b/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py index 6bc0539a..9ee57a1f 100644 --- a/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py +++ b/ethosu/vela/tflite/EmbeddingLookupSparseOptions.py @@ -35,12 +35,15 @@ class EmbeddingLookupSparseOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def EmbeddingLookupSparseOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return EmbeddingLookupSparseOptionsStart(builder) -def EmbeddingLookupSparseOptionsAddCombiner(builder, combiner): builder.PrependInt8Slot(0, combiner, 0) -def AddCombiner(builder, combiner): - return EmbeddingLookupSparseOptionsAddCombiner(builder, combiner) -def EmbeddingLookupSparseOptionsEnd(builder): return builder.EndObject() -def End(builder): - return EmbeddingLookupSparseOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def EmbeddingLookupSparseOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddCombiner(builder, combiner): builder.PrependInt8Slot(0, combiner, 0) +def EmbeddingLookupSparseOptionsAddCombiner(builder, combiner): + """This method is deprecated. Please switch to AddCombiner.""" + return AddCombiner(builder, combiner) +def End(builder): return builder.EndObject() +def EmbeddingLookupSparseOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/EqualOptions.py b/ethosu/vela/tflite/EqualOptions.py index 99c967d7..c616d258 100644 --- a/ethosu/vela/tflite/EqualOptions.py +++ b/ethosu/vela/tflite/EqualOptions.py @@ -28,9 +28,11 @@ class EqualOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def EqualOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return EqualOptionsStart(builder) -def EqualOptionsEnd(builder): return builder.EndObject() -def End(builder): - return EqualOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def EqualOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def EqualOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ExpOptions.py b/ethosu/vela/tflite/ExpOptions.py index 557c45c1..ca17de00 100644 --- a/ethosu/vela/tflite/ExpOptions.py +++ b/ethosu/vela/tflite/ExpOptions.py @@ -28,9 +28,11 @@ class ExpOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def ExpOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return ExpOptionsStart(builder) -def ExpOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ExpOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def ExpOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def ExpOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ExpandDimsOptions.py b/ethosu/vela/tflite/ExpandDimsOptions.py index dcfbd191..5e38a0d3 100644 --- a/ethosu/vela/tflite/ExpandDimsOptions.py +++ b/ethosu/vela/tflite/ExpandDimsOptions.py @@ -28,9 +28,11 @@ class ExpandDimsOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def ExpandDimsOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return ExpandDimsOptionsStart(builder) -def ExpandDimsOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ExpandDimsOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def ExpandDimsOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def ExpandDimsOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/FakeQuantOptions.py b/ethosu/vela/tflite/FakeQuantOptions.py index e8d951d5..43d5a780 100644 --- a/ethosu/vela/tflite/FakeQuantOptions.py +++ b/ethosu/vela/tflite/FakeQuantOptions.py @@ -56,21 +56,27 @@ class FakeQuantOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def FakeQuantOptionsStart(builder): builder.StartObject(4) -def Start(builder): - return FakeQuantOptionsStart(builder) -def FakeQuantOptionsAddMin(builder, min): builder.PrependFloat32Slot(0, min, 0.0) -def AddMin(builder, min): - return FakeQuantOptionsAddMin(builder, min) -def FakeQuantOptionsAddMax(builder, max): builder.PrependFloat32Slot(1, max, 0.0) -def AddMax(builder, max): - return FakeQuantOptionsAddMax(builder, max) -def FakeQuantOptionsAddNumBits(builder, numBits): builder.PrependInt32Slot(2, numBits, 0) -def AddNumBits(builder, numBits): - return FakeQuantOptionsAddNumBits(builder, numBits) -def FakeQuantOptionsAddNarrowRange(builder, narrowRange): builder.PrependBoolSlot(3, narrowRange, 0) -def AddNarrowRange(builder, narrowRange): - return FakeQuantOptionsAddNarrowRange(builder, narrowRange) -def FakeQuantOptionsEnd(builder): return builder.EndObject() -def End(builder): - return FakeQuantOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(4) +def FakeQuantOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddMin(builder, min): builder.PrependFloat32Slot(0, min, 0.0) +def FakeQuantOptionsAddMin(builder, min): + """This method is deprecated. Please switch to AddMin.""" + return AddMin(builder, min) +def AddMax(builder, max): builder.PrependFloat32Slot(1, max, 0.0) +def FakeQuantOptionsAddMax(builder, max): + """This method is deprecated. Please switch to AddMax.""" + return AddMax(builder, max) +def AddNumBits(builder, numBits): builder.PrependInt32Slot(2, numBits, 0) +def FakeQuantOptionsAddNumBits(builder, numBits): + """This method is deprecated. Please switch to AddNumBits.""" + return AddNumBits(builder, numBits) +def AddNarrowRange(builder, narrowRange): builder.PrependBoolSlot(3, narrowRange, 0) +def FakeQuantOptionsAddNarrowRange(builder, narrowRange): + """This method is deprecated. Please switch to AddNarrowRange.""" + return AddNarrowRange(builder, narrowRange) +def End(builder): return builder.EndObject() +def FakeQuantOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/FillOptions.py b/ethosu/vela/tflite/FillOptions.py index 175c93c0..bc2bcd28 100644 --- a/ethosu/vela/tflite/FillOptions.py +++ b/ethosu/vela/tflite/FillOptions.py @@ -28,9 +28,11 @@ class FillOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def FillOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return FillOptionsStart(builder) -def FillOptionsEnd(builder): return builder.EndObject() -def End(builder): - return FillOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def FillOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def FillOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/FloorDivOptions.py b/ethosu/vela/tflite/FloorDivOptions.py index 649eb730..3fed6755 100644 --- a/ethosu/vela/tflite/FloorDivOptions.py +++ b/ethosu/vela/tflite/FloorDivOptions.py @@ -28,9 +28,11 @@ class FloorDivOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def FloorDivOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return FloorDivOptionsStart(builder) -def FloorDivOptionsEnd(builder): return builder.EndObject() -def End(builder): - return FloorDivOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def FloorDivOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def FloorDivOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/FloorModOptions.py b/ethosu/vela/tflite/FloorModOptions.py index 6cfea5d0..df3b2c3d 100644 --- a/ethosu/vela/tflite/FloorModOptions.py +++ b/ethosu/vela/tflite/FloorModOptions.py @@ -28,9 +28,11 @@ class FloorModOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def FloorModOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return FloorModOptionsStart(builder) -def FloorModOptionsEnd(builder): return builder.EndObject() -def End(builder): - return FloorModOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def FloorModOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def FloorModOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/FullyConnectedOptions.py b/ethosu/vela/tflite/FullyConnectedOptions.py index 67ca53c4..72ae00ba 100644 --- a/ethosu/vela/tflite/FullyConnectedOptions.py +++ b/ethosu/vela/tflite/FullyConnectedOptions.py @@ -56,21 +56,27 @@ class FullyConnectedOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def FullyConnectedOptionsStart(builder): builder.StartObject(4) -def Start(builder): - return FullyConnectedOptionsStart(builder) -def FullyConnectedOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return FullyConnectedOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def FullyConnectedOptionsAddWeightsFormat(builder, weightsFormat): builder.PrependInt8Slot(1, weightsFormat, 0) -def AddWeightsFormat(builder, weightsFormat): - return FullyConnectedOptionsAddWeightsFormat(builder, weightsFormat) -def FullyConnectedOptionsAddKeepNumDims(builder, keepNumDims): builder.PrependBoolSlot(2, keepNumDims, 0) -def AddKeepNumDims(builder, keepNumDims): - return FullyConnectedOptionsAddKeepNumDims(builder, keepNumDims) -def FullyConnectedOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(3, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return FullyConnectedOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def FullyConnectedOptionsEnd(builder): return builder.EndObject() -def End(builder): - return FullyConnectedOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(4) +def FullyConnectedOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def FullyConnectedOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddWeightsFormat(builder, weightsFormat): builder.PrependInt8Slot(1, weightsFormat, 0) +def FullyConnectedOptionsAddWeightsFormat(builder, weightsFormat): + """This method is deprecated. Please switch to AddWeightsFormat.""" + return AddWeightsFormat(builder, weightsFormat) +def AddKeepNumDims(builder, keepNumDims): builder.PrependBoolSlot(2, keepNumDims, 0) +def FullyConnectedOptionsAddKeepNumDims(builder, keepNumDims): + """This method is deprecated. Please switch to AddKeepNumDims.""" + return AddKeepNumDims(builder, keepNumDims) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(3, asymmetricQuantizeInputs, 0) +def FullyConnectedOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def FullyConnectedOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/FullyConnectedOptionsWeightsFormat.py b/ethosu/vela/tflite/FullyConnectedOptionsWeightsFormat.py index d9a53887..6d81eca1 100644 --- a/ethosu/vela/tflite/FullyConnectedOptionsWeightsFormat.py +++ b/ethosu/vela/tflite/FullyConnectedOptionsWeightsFormat.py @@ -5,3 +5,4 @@ class FullyConnectedOptionsWeightsFormat(object): DEFAULT = 0 SHUFFLED4x16INT8 = 1 + diff --git a/ethosu/vela/tflite/GatherNdOptions.py b/ethosu/vela/tflite/GatherNdOptions.py index 56967b04..8d76f402 100644 --- a/ethosu/vela/tflite/GatherNdOptions.py +++ b/ethosu/vela/tflite/GatherNdOptions.py @@ -28,9 +28,11 @@ class GatherNdOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def GatherNdOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return GatherNdOptionsStart(builder) -def GatherNdOptionsEnd(builder): return builder.EndObject() -def End(builder): - return GatherNdOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def GatherNdOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def GatherNdOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/GatherOptions.py b/ethosu/vela/tflite/GatherOptions.py index 9d35523b..2235e07c 100644 --- a/ethosu/vela/tflite/GatherOptions.py +++ b/ethosu/vela/tflite/GatherOptions.py @@ -42,15 +42,19 @@ class GatherOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def GatherOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return GatherOptionsStart(builder) -def GatherOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) -def AddAxis(builder, axis): - return GatherOptionsAddAxis(builder, axis) -def GatherOptionsAddBatchDims(builder, batchDims): builder.PrependInt32Slot(1, batchDims, 0) -def AddBatchDims(builder, batchDims): - return GatherOptionsAddBatchDims(builder, batchDims) -def GatherOptionsEnd(builder): return builder.EndObject() -def End(builder): - return GatherOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def GatherOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) +def GatherOptionsAddAxis(builder, axis): + """This method is deprecated. Please switch to AddAxis.""" + return AddAxis(builder, axis) +def AddBatchDims(builder, batchDims): builder.PrependInt32Slot(1, batchDims, 0) +def GatherOptionsAddBatchDims(builder, batchDims): + """This method is deprecated. Please switch to AddBatchDims.""" + return AddBatchDims(builder, batchDims) +def End(builder): return builder.EndObject() +def GatherOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/GeluOptions.py b/ethosu/vela/tflite/GeluOptions.py new file mode 100644 index 00000000..71b9a32b --- /dev/null +++ b/ethosu/vela/tflite/GeluOptions.py @@ -0,0 +1,49 @@ +# automatically generated by the FlatBuffers compiler, do not modify + +# namespace: tflite + +import flatbuffers +from flatbuffers.compat import import_numpy +np = import_numpy() + +class GeluOptions(object): + __slots__ = ['_tab'] + + @classmethod + def GetRootAs(cls, buf, offset=0): + n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) + x = GeluOptions() + x.Init(buf, n + offset) + return x + + @classmethod + def GetRootAsGeluOptions(cls, buf, offset=0): + """This method is deprecated. Please switch to GetRootAs.""" + return cls.GetRootAs(buf, offset) + @classmethod + def GeluOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): + return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) + + # GeluOptions + def Init(self, buf, pos): + self._tab = flatbuffers.table.Table(buf, pos) + + # GeluOptions + def Approximate(self): + o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) + if o != 0: + return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) + return False + +def Start(builder): builder.StartObject(1) +def GeluOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddApproximate(builder, approximate): builder.PrependBoolSlot(0, approximate, 0) +def GeluOptionsAddApproximate(builder, approximate): + """This method is deprecated. Please switch to AddApproximate.""" + return AddApproximate(builder, approximate) +def End(builder): return builder.EndObject() +def GeluOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/GreaterEqualOptions.py b/ethosu/vela/tflite/GreaterEqualOptions.py index 53018210..c1606565 100644 --- a/ethosu/vela/tflite/GreaterEqualOptions.py +++ b/ethosu/vela/tflite/GreaterEqualOptions.py @@ -28,9 +28,11 @@ class GreaterEqualOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def GreaterEqualOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return GreaterEqualOptionsStart(builder) -def GreaterEqualOptionsEnd(builder): return builder.EndObject() -def End(builder): - return GreaterEqualOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def GreaterEqualOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def GreaterEqualOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/GreaterOptions.py b/ethosu/vela/tflite/GreaterOptions.py index 3d4c0c93..6904bb92 100644 --- a/ethosu/vela/tflite/GreaterOptions.py +++ b/ethosu/vela/tflite/GreaterOptions.py @@ -28,9 +28,11 @@ class GreaterOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def GreaterOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return GreaterOptionsStart(builder) -def GreaterOptionsEnd(builder): return builder.EndObject() -def End(builder): - return GreaterOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def GreaterOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def GreaterOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/HardSwishOptions.py b/ethosu/vela/tflite/HardSwishOptions.py index c0c4054f..6903501c 100644 --- a/ethosu/vela/tflite/HardSwishOptions.py +++ b/ethosu/vela/tflite/HardSwishOptions.py @@ -28,9 +28,11 @@ class HardSwishOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def HardSwishOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return HardSwishOptionsStart(builder) -def HardSwishOptionsEnd(builder): return builder.EndObject() -def End(builder): - return HardSwishOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def HardSwishOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def HardSwishOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/HashtableFindOptions.py b/ethosu/vela/tflite/HashtableFindOptions.py index 9078d60b..5dcb5339 100644 --- a/ethosu/vela/tflite/HashtableFindOptions.py +++ b/ethosu/vela/tflite/HashtableFindOptions.py @@ -28,9 +28,11 @@ class HashtableFindOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def HashtableFindOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return HashtableFindOptionsStart(builder) -def HashtableFindOptionsEnd(builder): return builder.EndObject() -def End(builder): - return HashtableFindOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def HashtableFindOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def HashtableFindOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/HashtableImportOptions.py b/ethosu/vela/tflite/HashtableImportOptions.py index 2b45955d..846f76ec 100644 --- a/ethosu/vela/tflite/HashtableImportOptions.py +++ b/ethosu/vela/tflite/HashtableImportOptions.py @@ -28,9 +28,11 @@ class HashtableImportOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def HashtableImportOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return HashtableImportOptionsStart(builder) -def HashtableImportOptionsEnd(builder): return builder.EndObject() -def End(builder): - return HashtableImportOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def HashtableImportOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def HashtableImportOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/HashtableOptions.py b/ethosu/vela/tflite/HashtableOptions.py index 82ea2a79..2bc1a877 100644 --- a/ethosu/vela/tflite/HashtableOptions.py +++ b/ethosu/vela/tflite/HashtableOptions.py @@ -49,18 +49,23 @@ class HashtableOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def HashtableOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return HashtableOptionsStart(builder) -def HashtableOptionsAddTableId(builder, tableId): builder.PrependInt32Slot(0, tableId, 0) -def AddTableId(builder, tableId): - return HashtableOptionsAddTableId(builder, tableId) -def HashtableOptionsAddKeyDtype(builder, keyDtype): builder.PrependInt8Slot(1, keyDtype, 0) -def AddKeyDtype(builder, keyDtype): - return HashtableOptionsAddKeyDtype(builder, keyDtype) -def HashtableOptionsAddValueDtype(builder, valueDtype): builder.PrependInt8Slot(2, valueDtype, 0) -def AddValueDtype(builder, valueDtype): - return HashtableOptionsAddValueDtype(builder, valueDtype) -def HashtableOptionsEnd(builder): return builder.EndObject() -def End(builder): - return HashtableOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def HashtableOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddTableId(builder, tableId): builder.PrependInt32Slot(0, tableId, 0) +def HashtableOptionsAddTableId(builder, tableId): + """This method is deprecated. Please switch to AddTableId.""" + return AddTableId(builder, tableId) +def AddKeyDtype(builder, keyDtype): builder.PrependInt8Slot(1, keyDtype, 0) +def HashtableOptionsAddKeyDtype(builder, keyDtype): + """This method is deprecated. Please switch to AddKeyDtype.""" + return AddKeyDtype(builder, keyDtype) +def AddValueDtype(builder, valueDtype): builder.PrependInt8Slot(2, valueDtype, 0) +def HashtableOptionsAddValueDtype(builder, valueDtype): + """This method is deprecated. Please switch to AddValueDtype.""" + return AddValueDtype(builder, valueDtype) +def End(builder): return builder.EndObject() +def HashtableOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/HashtableSizeOptions.py b/ethosu/vela/tflite/HashtableSizeOptions.py index 26c5ceb2..5e71aa8e 100644 --- a/ethosu/vela/tflite/HashtableSizeOptions.py +++ b/ethosu/vela/tflite/HashtableSizeOptions.py @@ -28,9 +28,11 @@ class HashtableSizeOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def HashtableSizeOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return HashtableSizeOptionsStart(builder) -def HashtableSizeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return HashtableSizeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def HashtableSizeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def HashtableSizeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/IfOptions.py b/ethosu/vela/tflite/IfOptions.py index 230339bd..bdc56b2f 100644 --- a/ethosu/vela/tflite/IfOptions.py +++ b/ethosu/vela/tflite/IfOptions.py @@ -42,15 +42,19 @@ class IfOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def IfOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return IfOptionsStart(builder) -def IfOptionsAddThenSubgraphIndex(builder, thenSubgraphIndex): builder.PrependInt32Slot(0, thenSubgraphIndex, 0) -def AddThenSubgraphIndex(builder, thenSubgraphIndex): - return IfOptionsAddThenSubgraphIndex(builder, thenSubgraphIndex) -def IfOptionsAddElseSubgraphIndex(builder, elseSubgraphIndex): builder.PrependInt32Slot(1, elseSubgraphIndex, 0) -def AddElseSubgraphIndex(builder, elseSubgraphIndex): - return IfOptionsAddElseSubgraphIndex(builder, elseSubgraphIndex) -def IfOptionsEnd(builder): return builder.EndObject() -def End(builder): - return IfOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def IfOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddThenSubgraphIndex(builder, thenSubgraphIndex): builder.PrependInt32Slot(0, thenSubgraphIndex, 0) +def IfOptionsAddThenSubgraphIndex(builder, thenSubgraphIndex): + """This method is deprecated. Please switch to AddThenSubgraphIndex.""" + return AddThenSubgraphIndex(builder, thenSubgraphIndex) +def AddElseSubgraphIndex(builder, elseSubgraphIndex): builder.PrependInt32Slot(1, elseSubgraphIndex, 0) +def IfOptionsAddElseSubgraphIndex(builder, elseSubgraphIndex): + """This method is deprecated. Please switch to AddElseSubgraphIndex.""" + return AddElseSubgraphIndex(builder, elseSubgraphIndex) +def End(builder): return builder.EndObject() +def IfOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Int32Vector.py b/ethosu/vela/tflite/Int32Vector.py index 6c2a614c..bfa5b3a2 100644 --- a/ethosu/vela/tflite/Int32Vector.py +++ b/ethosu/vela/tflite/Int32Vector.py @@ -55,15 +55,19 @@ class Int32Vector(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def Int32VectorStart(builder): builder.StartObject(1) -def Start(builder): - return Int32VectorStart(builder) -def Int32VectorAddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0) -def AddValues(builder, values): - return Int32VectorAddValues(builder, values) -def Int32VectorStartValuesVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartValuesVector(builder, numElems): - return Int32VectorStartValuesVector(builder, numElems) -def Int32VectorEnd(builder): return builder.EndObject() -def End(builder): - return Int32VectorEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def Int32VectorStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0) +def Int32VectorAddValues(builder, values): + """This method is deprecated. Please switch to AddValues.""" + return AddValues(builder, values) +def StartValuesVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def Int32VectorStartValuesVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartValuesVector(builder, numElems) +def End(builder): return builder.EndObject() +def Int32VectorEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/L2NormOptions.py b/ethosu/vela/tflite/L2NormOptions.py index c8746a77..6e033ca1 100644 --- a/ethosu/vela/tflite/L2NormOptions.py +++ b/ethosu/vela/tflite/L2NormOptions.py @@ -35,12 +35,15 @@ class L2NormOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def L2NormOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return L2NormOptionsStart(builder) -def L2NormOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return L2NormOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def L2NormOptionsEnd(builder): return builder.EndObject() -def End(builder): - return L2NormOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def L2NormOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def L2NormOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def End(builder): return builder.EndObject() +def L2NormOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LSHProjectionOptions.py b/ethosu/vela/tflite/LSHProjectionOptions.py index 033f8c8e..569d1135 100644 --- a/ethosu/vela/tflite/LSHProjectionOptions.py +++ b/ethosu/vela/tflite/LSHProjectionOptions.py @@ -35,12 +35,15 @@ class LSHProjectionOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def LSHProjectionOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return LSHProjectionOptionsStart(builder) -def LSHProjectionOptionsAddType(builder, type): builder.PrependInt8Slot(0, type, 0) -def AddType(builder, type): - return LSHProjectionOptionsAddType(builder, type) -def LSHProjectionOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LSHProjectionOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def LSHProjectionOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddType(builder, type): builder.PrependInt8Slot(0, type, 0) +def LSHProjectionOptionsAddType(builder, type): + """This method is deprecated. Please switch to AddType.""" + return AddType(builder, type) +def End(builder): return builder.EndObject() +def LSHProjectionOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LSHProjectionType.py b/ethosu/vela/tflite/LSHProjectionType.py index a7d6a313..d6a136e8 100644 --- a/ethosu/vela/tflite/LSHProjectionType.py +++ b/ethosu/vela/tflite/LSHProjectionType.py @@ -6,3 +6,4 @@ class LSHProjectionType(object): UNKNOWN = 0 SPARSE = 1 DENSE = 2 + diff --git a/ethosu/vela/tflite/LSTMKernelType.py b/ethosu/vela/tflite/LSTMKernelType.py index fd657998..1ca4df0a 100644 --- a/ethosu/vela/tflite/LSTMKernelType.py +++ b/ethosu/vela/tflite/LSTMKernelType.py @@ -5,3 +5,4 @@ class LSTMKernelType(object): FULL = 0 BASIC = 1 + diff --git a/ethosu/vela/tflite/LSTMOptions.py b/ethosu/vela/tflite/LSTMOptions.py index acaedc74..04e2ac92 100644 --- a/ethosu/vela/tflite/LSTMOptions.py +++ b/ethosu/vela/tflite/LSTMOptions.py @@ -63,24 +63,31 @@ class LSTMOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def LSTMOptionsStart(builder): builder.StartObject(5) -def Start(builder): - return LSTMOptionsStart(builder) -def LSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return LSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def LSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) -def AddCellClip(builder, cellClip): - return LSTMOptionsAddCellClip(builder, cellClip) -def LSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) -def AddProjClip(builder, projClip): - return LSTMOptionsAddProjClip(builder, projClip) -def LSTMOptionsAddKernelType(builder, kernelType): builder.PrependInt8Slot(3, kernelType, 0) -def AddKernelType(builder, kernelType): - return LSTMOptionsAddKernelType(builder, kernelType) -def LSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(4, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return LSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def LSTMOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LSTMOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(5) +def LSTMOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def LSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) +def LSTMOptionsAddCellClip(builder, cellClip): + """This method is deprecated. Please switch to AddCellClip.""" + return AddCellClip(builder, cellClip) +def AddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) +def LSTMOptionsAddProjClip(builder, projClip): + """This method is deprecated. Please switch to AddProjClip.""" + return AddProjClip(builder, projClip) +def AddKernelType(builder, kernelType): builder.PrependInt8Slot(3, kernelType, 0) +def LSTMOptionsAddKernelType(builder, kernelType): + """This method is deprecated. Please switch to AddKernelType.""" + return AddKernelType(builder, kernelType) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(4, asymmetricQuantizeInputs, 0) +def LSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def LSTMOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LeakyReluOptions.py b/ethosu/vela/tflite/LeakyReluOptions.py index 8550a0f9..ab4bfc24 100644 --- a/ethosu/vela/tflite/LeakyReluOptions.py +++ b/ethosu/vela/tflite/LeakyReluOptions.py @@ -35,12 +35,15 @@ class LeakyReluOptions(object): return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) return 0.0 -def LeakyReluOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return LeakyReluOptionsStart(builder) -def LeakyReluOptionsAddAlpha(builder, alpha): builder.PrependFloat32Slot(0, alpha, 0.0) -def AddAlpha(builder, alpha): - return LeakyReluOptionsAddAlpha(builder, alpha) -def LeakyReluOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LeakyReluOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def LeakyReluOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAlpha(builder, alpha): builder.PrependFloat32Slot(0, alpha, 0.0) +def LeakyReluOptionsAddAlpha(builder, alpha): + """This method is deprecated. Please switch to AddAlpha.""" + return AddAlpha(builder, alpha) +def End(builder): return builder.EndObject() +def LeakyReluOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LessEqualOptions.py b/ethosu/vela/tflite/LessEqualOptions.py index a6c4a865..8861b8cf 100644 --- a/ethosu/vela/tflite/LessEqualOptions.py +++ b/ethosu/vela/tflite/LessEqualOptions.py @@ -28,9 +28,11 @@ class LessEqualOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def LessEqualOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return LessEqualOptionsStart(builder) -def LessEqualOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LessEqualOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def LessEqualOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def LessEqualOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LessOptions.py b/ethosu/vela/tflite/LessOptions.py index 765a245d..a207b775 100644 --- a/ethosu/vela/tflite/LessOptions.py +++ b/ethosu/vela/tflite/LessOptions.py @@ -28,9 +28,11 @@ class LessOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def LessOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return LessOptionsStart(builder) -def LessOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LessOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def LessOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def LessOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LocalResponseNormalizationOptions.py b/ethosu/vela/tflite/LocalResponseNormalizationOptions.py index 834aed4b..3831c873 100644 --- a/ethosu/vela/tflite/LocalResponseNormalizationOptions.py +++ b/ethosu/vela/tflite/LocalResponseNormalizationOptions.py @@ -56,21 +56,27 @@ class LocalResponseNormalizationOptions(object): return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) return 0.0 -def LocalResponseNormalizationOptionsStart(builder): builder.StartObject(4) -def Start(builder): - return LocalResponseNormalizationOptionsStart(builder) -def LocalResponseNormalizationOptionsAddRadius(builder, radius): builder.PrependInt32Slot(0, radius, 0) -def AddRadius(builder, radius): - return LocalResponseNormalizationOptionsAddRadius(builder, radius) -def LocalResponseNormalizationOptionsAddBias(builder, bias): builder.PrependFloat32Slot(1, bias, 0.0) -def AddBias(builder, bias): - return LocalResponseNormalizationOptionsAddBias(builder, bias) -def LocalResponseNormalizationOptionsAddAlpha(builder, alpha): builder.PrependFloat32Slot(2, alpha, 0.0) -def AddAlpha(builder, alpha): - return LocalResponseNormalizationOptionsAddAlpha(builder, alpha) -def LocalResponseNormalizationOptionsAddBeta(builder, beta): builder.PrependFloat32Slot(3, beta, 0.0) -def AddBeta(builder, beta): - return LocalResponseNormalizationOptionsAddBeta(builder, beta) -def LocalResponseNormalizationOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LocalResponseNormalizationOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(4) +def LocalResponseNormalizationOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddRadius(builder, radius): builder.PrependInt32Slot(0, radius, 0) +def LocalResponseNormalizationOptionsAddRadius(builder, radius): + """This method is deprecated. Please switch to AddRadius.""" + return AddRadius(builder, radius) +def AddBias(builder, bias): builder.PrependFloat32Slot(1, bias, 0.0) +def LocalResponseNormalizationOptionsAddBias(builder, bias): + """This method is deprecated. Please switch to AddBias.""" + return AddBias(builder, bias) +def AddAlpha(builder, alpha): builder.PrependFloat32Slot(2, alpha, 0.0) +def LocalResponseNormalizationOptionsAddAlpha(builder, alpha): + """This method is deprecated. Please switch to AddAlpha.""" + return AddAlpha(builder, alpha) +def AddBeta(builder, beta): builder.PrependFloat32Slot(3, beta, 0.0) +def LocalResponseNormalizationOptionsAddBeta(builder, beta): + """This method is deprecated. Please switch to AddBeta.""" + return AddBeta(builder, beta) +def End(builder): return builder.EndObject() +def LocalResponseNormalizationOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LogSoftmaxOptions.py b/ethosu/vela/tflite/LogSoftmaxOptions.py index a5c81056..9c88b4c7 100644 --- a/ethosu/vela/tflite/LogSoftmaxOptions.py +++ b/ethosu/vela/tflite/LogSoftmaxOptions.py @@ -28,9 +28,11 @@ class LogSoftmaxOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def LogSoftmaxOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return LogSoftmaxOptionsStart(builder) -def LogSoftmaxOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LogSoftmaxOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def LogSoftmaxOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def LogSoftmaxOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LogicalAndOptions.py b/ethosu/vela/tflite/LogicalAndOptions.py index a786dbe7..62d3025e 100644 --- a/ethosu/vela/tflite/LogicalAndOptions.py +++ b/ethosu/vela/tflite/LogicalAndOptions.py @@ -28,9 +28,11 @@ class LogicalAndOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def LogicalAndOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return LogicalAndOptionsStart(builder) -def LogicalAndOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LogicalAndOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def LogicalAndOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def LogicalAndOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LogicalNotOptions.py b/ethosu/vela/tflite/LogicalNotOptions.py index 4c29fdf3..2a793ccb 100644 --- a/ethosu/vela/tflite/LogicalNotOptions.py +++ b/ethosu/vela/tflite/LogicalNotOptions.py @@ -28,9 +28,11 @@ class LogicalNotOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def LogicalNotOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return LogicalNotOptionsStart(builder) -def LogicalNotOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LogicalNotOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def LogicalNotOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def LogicalNotOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/LogicalOrOptions.py b/ethosu/vela/tflite/LogicalOrOptions.py index b058a3b9..6e9ec5b2 100644 --- a/ethosu/vela/tflite/LogicalOrOptions.py +++ b/ethosu/vela/tflite/LogicalOrOptions.py @@ -28,9 +28,11 @@ class LogicalOrOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def LogicalOrOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return LogicalOrOptionsStart(builder) -def LogicalOrOptionsEnd(builder): return builder.EndObject() -def End(builder): - return LogicalOrOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def LogicalOrOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def LogicalOrOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/MatrixDiagOptions.py b/ethosu/vela/tflite/MatrixDiagOptions.py index 0f2d3199..f4a4a669 100644 --- a/ethosu/vela/tflite/MatrixDiagOptions.py +++ b/ethosu/vela/tflite/MatrixDiagOptions.py @@ -28,9 +28,11 @@ class MatrixDiagOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def MatrixDiagOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return MatrixDiagOptionsStart(builder) -def MatrixDiagOptionsEnd(builder): return builder.EndObject() -def End(builder): - return MatrixDiagOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def MatrixDiagOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def MatrixDiagOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/MatrixSetDiagOptions.py b/ethosu/vela/tflite/MatrixSetDiagOptions.py index 37f496a1..d0a93159 100644 --- a/ethosu/vela/tflite/MatrixSetDiagOptions.py +++ b/ethosu/vela/tflite/MatrixSetDiagOptions.py @@ -28,9 +28,11 @@ class MatrixSetDiagOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def MatrixSetDiagOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return MatrixSetDiagOptionsStart(builder) -def MatrixSetDiagOptionsEnd(builder): return builder.EndObject() -def End(builder): - return MatrixSetDiagOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def MatrixSetDiagOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def MatrixSetDiagOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/MaximumMinimumOptions.py b/ethosu/vela/tflite/MaximumMinimumOptions.py index e961e71d..f5b91f8d 100644 --- a/ethosu/vela/tflite/MaximumMinimumOptions.py +++ b/ethosu/vela/tflite/MaximumMinimumOptions.py @@ -28,9 +28,11 @@ class MaximumMinimumOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def MaximumMinimumOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return MaximumMinimumOptionsStart(builder) -def MaximumMinimumOptionsEnd(builder): return builder.EndObject() -def End(builder): - return MaximumMinimumOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def MaximumMinimumOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def MaximumMinimumOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Metadata.py b/ethosu/vela/tflite/Metadata.py index 0ff8bf46..c0a83917 100644 --- a/ethosu/vela/tflite/Metadata.py +++ b/ethosu/vela/tflite/Metadata.py @@ -42,15 +42,19 @@ class Metadata(object): return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) return 0 -def MetadataStart(builder): builder.StartObject(2) -def Start(builder): - return MetadataStart(builder) -def MetadataAddName(builder, name): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def AddName(builder, name): - return MetadataAddName(builder, name) -def MetadataAddBuffer(builder, buffer): builder.PrependUint32Slot(1, buffer, 0) -def AddBuffer(builder, buffer): - return MetadataAddBuffer(builder, buffer) -def MetadataEnd(builder): return builder.EndObject() -def End(builder): - return MetadataEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def MetadataStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddName(builder, name): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) +def MetadataAddName(builder, name): + """This method is deprecated. Please switch to AddName.""" + return AddName(builder, name) +def AddBuffer(builder, buffer): builder.PrependUint32Slot(1, buffer, 0) +def MetadataAddBuffer(builder, buffer): + """This method is deprecated. Please switch to AddBuffer.""" + return AddBuffer(builder, buffer) +def End(builder): return builder.EndObject() +def MetadataEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/MirrorPadMode.py b/ethosu/vela/tflite/MirrorPadMode.py index 8fb6396f..ce7579d2 100644 --- a/ethosu/vela/tflite/MirrorPadMode.py +++ b/ethosu/vela/tflite/MirrorPadMode.py @@ -5,3 +5,4 @@ class MirrorPadMode(object): REFLECT = 0 SYMMETRIC = 1 + diff --git a/ethosu/vela/tflite/MirrorPadOptions.py b/ethosu/vela/tflite/MirrorPadOptions.py index b440117a..76a0076a 100644 --- a/ethosu/vela/tflite/MirrorPadOptions.py +++ b/ethosu/vela/tflite/MirrorPadOptions.py @@ -35,12 +35,15 @@ class MirrorPadOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def MirrorPadOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return MirrorPadOptionsStart(builder) -def MirrorPadOptionsAddMode(builder, mode): builder.PrependInt8Slot(0, mode, 0) -def AddMode(builder, mode): - return MirrorPadOptionsAddMode(builder, mode) -def MirrorPadOptionsEnd(builder): return builder.EndObject() -def End(builder): - return MirrorPadOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def MirrorPadOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddMode(builder, mode): builder.PrependInt8Slot(0, mode, 0) +def MirrorPadOptionsAddMode(builder, mode): + """This method is deprecated. Please switch to AddMode.""" + return AddMode(builder, mode) +def End(builder): return builder.EndObject() +def MirrorPadOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Model.py b/ethosu/vela/tflite/Model.py index e81aa8fe..660695fb 100644 --- a/ethosu/vela/tflite/Model.py +++ b/ethosu/vela/tflite/Model.py @@ -42,7 +42,7 @@ class Model(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .OperatorCode import OperatorCode + from tflite.OperatorCode import OperatorCode obj = OperatorCode() obj.Init(self._tab.Bytes, x) return obj @@ -67,7 +67,7 @@ class Model(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .SubGraph import SubGraph + from tflite.SubGraph import SubGraph obj = SubGraph() obj.Init(self._tab.Bytes, x) return obj @@ -99,7 +99,7 @@ class Model(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .Buffer import Buffer + from tflite.Buffer import Buffer obj = Buffer() obj.Init(self._tab.Bytes, x) return obj @@ -151,7 +151,7 @@ class Model(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .Metadata import Metadata + from tflite.Metadata import Metadata obj = Metadata() obj.Init(self._tab.Bytes, x) return obj @@ -176,7 +176,7 @@ class Model(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .SignatureDef import SignatureDef + from tflite.SignatureDef import SignatureDef obj = SignatureDef() obj.Init(self._tab.Bytes, x) return obj @@ -194,51 +194,67 @@ class Model(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) return o == 0 -def ModelStart(builder): builder.StartObject(8) -def Start(builder): - return ModelStart(builder) -def ModelAddVersion(builder, version): builder.PrependUint32Slot(0, version, 0) -def AddVersion(builder, version): - return ModelAddVersion(builder, version) -def ModelAddOperatorCodes(builder, operatorCodes): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(operatorCodes), 0) -def AddOperatorCodes(builder, operatorCodes): - return ModelAddOperatorCodes(builder, operatorCodes) -def ModelStartOperatorCodesVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartOperatorCodesVector(builder, numElems): - return ModelStartOperatorCodesVector(builder, numElems) -def ModelAddSubgraphs(builder, subgraphs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(subgraphs), 0) -def AddSubgraphs(builder, subgraphs): - return ModelAddSubgraphs(builder, subgraphs) -def ModelStartSubgraphsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartSubgraphsVector(builder, numElems): - return ModelStartSubgraphsVector(builder, numElems) -def ModelAddDescription(builder, description): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(description), 0) -def AddDescription(builder, description): - return ModelAddDescription(builder, description) -def ModelAddBuffers(builder, buffers): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(buffers), 0) -def AddBuffers(builder, buffers): - return ModelAddBuffers(builder, buffers) -def ModelStartBuffersVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartBuffersVector(builder, numElems): - return ModelStartBuffersVector(builder, numElems) -def ModelAddMetadataBuffer(builder, metadataBuffer): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(metadataBuffer), 0) -def AddMetadataBuffer(builder, metadataBuffer): - return ModelAddMetadataBuffer(builder, metadataBuffer) -def ModelStartMetadataBufferVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartMetadataBufferVector(builder, numElems): - return ModelStartMetadataBufferVector(builder, numElems) -def ModelAddMetadata(builder, metadata): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(metadata), 0) -def AddMetadata(builder, metadata): - return ModelAddMetadata(builder, metadata) -def ModelStartMetadataVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartMetadataVector(builder, numElems): - return ModelStartMetadataVector(builder, numElems) -def ModelAddSignatureDefs(builder, signatureDefs): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(signatureDefs), 0) -def AddSignatureDefs(builder, signatureDefs): - return ModelAddSignatureDefs(builder, signatureDefs) -def ModelStartSignatureDefsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartSignatureDefsVector(builder, numElems): - return ModelStartSignatureDefsVector(builder, numElems) -def ModelEnd(builder): return builder.EndObject() -def End(builder): - return ModelEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(8) +def ModelStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddVersion(builder, version): builder.PrependUint32Slot(0, version, 0) +def ModelAddVersion(builder, version): + """This method is deprecated. Please switch to AddVersion.""" + return AddVersion(builder, version) +def AddOperatorCodes(builder, operatorCodes): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(operatorCodes), 0) +def ModelAddOperatorCodes(builder, operatorCodes): + """This method is deprecated. Please switch to AddOperatorCodes.""" + return AddOperatorCodes(builder, operatorCodes) +def StartOperatorCodesVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ModelStartOperatorCodesVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartOperatorCodesVector(builder, numElems) +def AddSubgraphs(builder, subgraphs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(subgraphs), 0) +def ModelAddSubgraphs(builder, subgraphs): + """This method is deprecated. Please switch to AddSubgraphs.""" + return AddSubgraphs(builder, subgraphs) +def StartSubgraphsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ModelStartSubgraphsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartSubgraphsVector(builder, numElems) +def AddDescription(builder, description): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(description), 0) +def ModelAddDescription(builder, description): + """This method is deprecated. Please switch to AddDescription.""" + return AddDescription(builder, description) +def AddBuffers(builder, buffers): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(buffers), 0) +def ModelAddBuffers(builder, buffers): + """This method is deprecated. Please switch to AddBuffers.""" + return AddBuffers(builder, buffers) +def StartBuffersVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ModelStartBuffersVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartBuffersVector(builder, numElems) +def AddMetadataBuffer(builder, metadataBuffer): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(metadataBuffer), 0) +def ModelAddMetadataBuffer(builder, metadataBuffer): + """This method is deprecated. Please switch to AddMetadataBuffer.""" + return AddMetadataBuffer(builder, metadataBuffer) +def StartMetadataBufferVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ModelStartMetadataBufferVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartMetadataBufferVector(builder, numElems) +def AddMetadata(builder, metadata): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(metadata), 0) +def ModelAddMetadata(builder, metadata): + """This method is deprecated. Please switch to AddMetadata.""" + return AddMetadata(builder, metadata) +def StartMetadataVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ModelStartMetadataVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartMetadataVector(builder, numElems) +def AddSignatureDefs(builder, signatureDefs): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(signatureDefs), 0) +def ModelAddSignatureDefs(builder, signatureDefs): + """This method is deprecated. Please switch to AddSignatureDefs.""" + return AddSignatureDefs(builder, signatureDefs) +def StartSignatureDefsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ModelStartSignatureDefsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartSignatureDefsVector(builder, numElems) +def End(builder): return builder.EndObject() +def ModelEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/MulOptions.py b/ethosu/vela/tflite/MulOptions.py index 70fb6872..9ef9eb36 100644 --- a/ethosu/vela/tflite/MulOptions.py +++ b/ethosu/vela/tflite/MulOptions.py @@ -35,12 +35,15 @@ class MulOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def MulOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return MulOptionsStart(builder) -def MulOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return MulOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def MulOptionsEnd(builder): return builder.EndObject() -def End(builder): - return MulOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def MulOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def MulOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def End(builder): return builder.EndObject() +def MulOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/NegOptions.py b/ethosu/vela/tflite/NegOptions.py index d005cab5..62a544c0 100644 --- a/ethosu/vela/tflite/NegOptions.py +++ b/ethosu/vela/tflite/NegOptions.py @@ -28,9 +28,11 @@ class NegOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def NegOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return NegOptionsStart(builder) -def NegOptionsEnd(builder): return builder.EndObject() -def End(builder): - return NegOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def NegOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def NegOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/NonMaxSuppressionV4Options.py b/ethosu/vela/tflite/NonMaxSuppressionV4Options.py index b25913a8..beb361da 100644 --- a/ethosu/vela/tflite/NonMaxSuppressionV4Options.py +++ b/ethosu/vela/tflite/NonMaxSuppressionV4Options.py @@ -28,9 +28,11 @@ class NonMaxSuppressionV4Options(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def NonMaxSuppressionV4OptionsStart(builder): builder.StartObject(0) -def Start(builder): - return NonMaxSuppressionV4OptionsStart(builder) -def NonMaxSuppressionV4OptionsEnd(builder): return builder.EndObject() -def End(builder): - return NonMaxSuppressionV4OptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def NonMaxSuppressionV4OptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def NonMaxSuppressionV4OptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/NonMaxSuppressionV5Options.py b/ethosu/vela/tflite/NonMaxSuppressionV5Options.py index b51bd97d..1c87108d 100644 --- a/ethosu/vela/tflite/NonMaxSuppressionV5Options.py +++ b/ethosu/vela/tflite/NonMaxSuppressionV5Options.py @@ -28,9 +28,11 @@ class NonMaxSuppressionV5Options(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def NonMaxSuppressionV5OptionsStart(builder): builder.StartObject(0) -def Start(builder): - return NonMaxSuppressionV5OptionsStart(builder) -def NonMaxSuppressionV5OptionsEnd(builder): return builder.EndObject() -def End(builder): - return NonMaxSuppressionV5OptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def NonMaxSuppressionV5OptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def NonMaxSuppressionV5OptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/NotEqualOptions.py b/ethosu/vela/tflite/NotEqualOptions.py index a1c6dba1..54652705 100644 --- a/ethosu/vela/tflite/NotEqualOptions.py +++ b/ethosu/vela/tflite/NotEqualOptions.py @@ -28,9 +28,11 @@ class NotEqualOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def NotEqualOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return NotEqualOptionsStart(builder) -def NotEqualOptionsEnd(builder): return builder.EndObject() -def End(builder): - return NotEqualOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def NotEqualOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def NotEqualOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/OneHotOptions.py b/ethosu/vela/tflite/OneHotOptions.py index 873e01ec..a4de3e4b 100644 --- a/ethosu/vela/tflite/OneHotOptions.py +++ b/ethosu/vela/tflite/OneHotOptions.py @@ -35,12 +35,15 @@ class OneHotOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def OneHotOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return OneHotOptionsStart(builder) -def OneHotOptionsAddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) -def AddAxis(builder, axis): - return OneHotOptionsAddAxis(builder, axis) -def OneHotOptionsEnd(builder): return builder.EndObject() -def End(builder): - return OneHotOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def OneHotOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAxis(builder, axis): builder.PrependInt32Slot(0, axis, 0) +def OneHotOptionsAddAxis(builder, axis): + """This method is deprecated. Please switch to AddAxis.""" + return AddAxis(builder, axis) +def End(builder): return builder.EndObject() +def OneHotOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Operator.py b/ethosu/vela/tflite/Operator.py index 2af3f8ce..ce23bedc 100644 --- a/ethosu/vela/tflite/Operator.py +++ b/ethosu/vela/tflite/Operator.py @@ -194,51 +194,67 @@ class Operator(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20)) return o == 0 -def OperatorStart(builder): builder.StartObject(9) -def Start(builder): - return OperatorStart(builder) -def OperatorAddOpcodeIndex(builder, opcodeIndex): builder.PrependUint32Slot(0, opcodeIndex, 0) -def AddOpcodeIndex(builder, opcodeIndex): - return OperatorAddOpcodeIndex(builder, opcodeIndex) -def OperatorAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) -def AddInputs(builder, inputs): - return OperatorAddInputs(builder, inputs) -def OperatorStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartInputsVector(builder, numElems): - return OperatorStartInputsVector(builder, numElems) -def OperatorAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) -def AddOutputs(builder, outputs): - return OperatorAddOutputs(builder, outputs) -def OperatorStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartOutputsVector(builder, numElems): - return OperatorStartOutputsVector(builder, numElems) -def OperatorAddBuiltinOptionsType(builder, builtinOptionsType): builder.PrependUint8Slot(3, builtinOptionsType, 0) -def AddBuiltinOptionsType(builder, builtinOptionsType): - return OperatorAddBuiltinOptionsType(builder, builtinOptionsType) -def OperatorAddBuiltinOptions(builder, builtinOptions): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(builtinOptions), 0) -def AddBuiltinOptions(builder, builtinOptions): - return OperatorAddBuiltinOptions(builder, builtinOptions) -def OperatorAddCustomOptions(builder, customOptions): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(customOptions), 0) -def AddCustomOptions(builder, customOptions): - return OperatorAddCustomOptions(builder, customOptions) -def OperatorStartCustomOptionsVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def StartCustomOptionsVector(builder, numElems): - return OperatorStartCustomOptionsVector(builder, numElems) -def OperatorAddCustomOptionsFormat(builder, customOptionsFormat): builder.PrependInt8Slot(6, customOptionsFormat, 0) -def AddCustomOptionsFormat(builder, customOptionsFormat): - return OperatorAddCustomOptionsFormat(builder, customOptionsFormat) -def OperatorAddMutatingVariableInputs(builder, mutatingVariableInputs): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(mutatingVariableInputs), 0) -def AddMutatingVariableInputs(builder, mutatingVariableInputs): - return OperatorAddMutatingVariableInputs(builder, mutatingVariableInputs) -def OperatorStartMutatingVariableInputsVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def StartMutatingVariableInputsVector(builder, numElems): - return OperatorStartMutatingVariableInputsVector(builder, numElems) -def OperatorAddIntermediates(builder, intermediates): builder.PrependUOffsetTRelativeSlot(8, flatbuffers.number_types.UOffsetTFlags.py_type(intermediates), 0) -def AddIntermediates(builder, intermediates): - return OperatorAddIntermediates(builder, intermediates) -def OperatorStartIntermediatesVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartIntermediatesVector(builder, numElems): - return OperatorStartIntermediatesVector(builder, numElems) -def OperatorEnd(builder): return builder.EndObject() -def End(builder): - return OperatorEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(9) +def OperatorStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddOpcodeIndex(builder, opcodeIndex): builder.PrependUint32Slot(0, opcodeIndex, 0) +def OperatorAddOpcodeIndex(builder, opcodeIndex): + """This method is deprecated. Please switch to AddOpcodeIndex.""" + return AddOpcodeIndex(builder, opcodeIndex) +def AddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) +def OperatorAddInputs(builder, inputs): + """This method is deprecated. Please switch to AddInputs.""" + return AddInputs(builder, inputs) +def StartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def OperatorStartInputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartInputsVector(builder, numElems) +def AddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) +def OperatorAddOutputs(builder, outputs): + """This method is deprecated. Please switch to AddOutputs.""" + return AddOutputs(builder, outputs) +def StartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def OperatorStartOutputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartOutputsVector(builder, numElems) +def AddBuiltinOptionsType(builder, builtinOptionsType): builder.PrependUint8Slot(3, builtinOptionsType, 0) +def OperatorAddBuiltinOptionsType(builder, builtinOptionsType): + """This method is deprecated. Please switch to AddBuiltinOptionsType.""" + return AddBuiltinOptionsType(builder, builtinOptionsType) +def AddBuiltinOptions(builder, builtinOptions): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(builtinOptions), 0) +def OperatorAddBuiltinOptions(builder, builtinOptions): + """This method is deprecated. Please switch to AddBuiltinOptions.""" + return AddBuiltinOptions(builder, builtinOptions) +def AddCustomOptions(builder, customOptions): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(customOptions), 0) +def OperatorAddCustomOptions(builder, customOptions): + """This method is deprecated. Please switch to AddCustomOptions.""" + return AddCustomOptions(builder, customOptions) +def StartCustomOptionsVector(builder, numElems): return builder.StartVector(1, numElems, 1) +def OperatorStartCustomOptionsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartCustomOptionsVector(builder, numElems) +def AddCustomOptionsFormat(builder, customOptionsFormat): builder.PrependInt8Slot(6, customOptionsFormat, 0) +def OperatorAddCustomOptionsFormat(builder, customOptionsFormat): + """This method is deprecated. Please switch to AddCustomOptionsFormat.""" + return AddCustomOptionsFormat(builder, customOptionsFormat) +def AddMutatingVariableInputs(builder, mutatingVariableInputs): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(mutatingVariableInputs), 0) +def OperatorAddMutatingVariableInputs(builder, mutatingVariableInputs): + """This method is deprecated. Please switch to AddMutatingVariableInputs.""" + return AddMutatingVariableInputs(builder, mutatingVariableInputs) +def StartMutatingVariableInputsVector(builder, numElems): return builder.StartVector(1, numElems, 1) +def OperatorStartMutatingVariableInputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartMutatingVariableInputsVector(builder, numElems) +def AddIntermediates(builder, intermediates): builder.PrependUOffsetTRelativeSlot(8, flatbuffers.number_types.UOffsetTFlags.py_type(intermediates), 0) +def OperatorAddIntermediates(builder, intermediates): + """This method is deprecated. Please switch to AddIntermediates.""" + return AddIntermediates(builder, intermediates) +def StartIntermediatesVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def OperatorStartIntermediatesVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartIntermediatesVector(builder, numElems) +def End(builder): return builder.EndObject() +def OperatorEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/OperatorCode.py b/ethosu/vela/tflite/OperatorCode.py index a250e7c1..1b95a23d 100644 --- a/ethosu/vela/tflite/OperatorCode.py +++ b/ethosu/vela/tflite/OperatorCode.py @@ -56,21 +56,27 @@ class OperatorCode(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def OperatorCodeStart(builder): builder.StartObject(4) -def Start(builder): - return OperatorCodeStart(builder) -def OperatorCodeAddDeprecatedBuiltinCode(builder, deprecatedBuiltinCode): builder.PrependInt8Slot(0, deprecatedBuiltinCode, 0) -def AddDeprecatedBuiltinCode(builder, deprecatedBuiltinCode): - return OperatorCodeAddDeprecatedBuiltinCode(builder, deprecatedBuiltinCode) -def OperatorCodeAddCustomCode(builder, customCode): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(customCode), 0) -def AddCustomCode(builder, customCode): - return OperatorCodeAddCustomCode(builder, customCode) -def OperatorCodeAddVersion(builder, version): builder.PrependInt32Slot(2, version, 1) -def AddVersion(builder, version): - return OperatorCodeAddVersion(builder, version) -def OperatorCodeAddBuiltinCode(builder, builtinCode): builder.PrependInt32Slot(3, builtinCode, 0) -def AddBuiltinCode(builder, builtinCode): - return OperatorCodeAddBuiltinCode(builder, builtinCode) -def OperatorCodeEnd(builder): return builder.EndObject() -def End(builder): - return OperatorCodeEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(4) +def OperatorCodeStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddDeprecatedBuiltinCode(builder, deprecatedBuiltinCode): builder.PrependInt8Slot(0, deprecatedBuiltinCode, 0) +def OperatorCodeAddDeprecatedBuiltinCode(builder, deprecatedBuiltinCode): + """This method is deprecated. Please switch to AddDeprecatedBuiltinCode.""" + return AddDeprecatedBuiltinCode(builder, deprecatedBuiltinCode) +def AddCustomCode(builder, customCode): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(customCode), 0) +def OperatorCodeAddCustomCode(builder, customCode): + """This method is deprecated. Please switch to AddCustomCode.""" + return AddCustomCode(builder, customCode) +def AddVersion(builder, version): builder.PrependInt32Slot(2, version, 1) +def OperatorCodeAddVersion(builder, version): + """This method is deprecated. Please switch to AddVersion.""" + return AddVersion(builder, version) +def AddBuiltinCode(builder, builtinCode): builder.PrependInt32Slot(3, builtinCode, 0) +def OperatorCodeAddBuiltinCode(builder, builtinCode): + """This method is deprecated. Please switch to AddBuiltinCode.""" + return AddBuiltinCode(builder, builtinCode) +def End(builder): return builder.EndObject() +def OperatorCodeEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/PackOptions.py b/ethosu/vela/tflite/PackOptions.py index 1591f15d..89bf80aa 100644 --- a/ethosu/vela/tflite/PackOptions.py +++ b/ethosu/vela/tflite/PackOptions.py @@ -42,15 +42,19 @@ class PackOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def PackOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return PackOptionsStart(builder) -def PackOptionsAddValuesCount(builder, valuesCount): builder.PrependInt32Slot(0, valuesCount, 0) -def AddValuesCount(builder, valuesCount): - return PackOptionsAddValuesCount(builder, valuesCount) -def PackOptionsAddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0) -def AddAxis(builder, axis): - return PackOptionsAddAxis(builder, axis) -def PackOptionsEnd(builder): return builder.EndObject() -def End(builder): - return PackOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def PackOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddValuesCount(builder, valuesCount): builder.PrependInt32Slot(0, valuesCount, 0) +def PackOptionsAddValuesCount(builder, valuesCount): + """This method is deprecated. Please switch to AddValuesCount.""" + return AddValuesCount(builder, valuesCount) +def AddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0) +def PackOptionsAddAxis(builder, axis): + """This method is deprecated. Please switch to AddAxis.""" + return AddAxis(builder, axis) +def End(builder): return builder.EndObject() +def PackOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/PadOptions.py b/ethosu/vela/tflite/PadOptions.py index b73f51d8..5a336bf1 100644 --- a/ethosu/vela/tflite/PadOptions.py +++ b/ethosu/vela/tflite/PadOptions.py @@ -28,9 +28,11 @@ class PadOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def PadOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return PadOptionsStart(builder) -def PadOptionsEnd(builder): return builder.EndObject() -def End(builder): - return PadOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def PadOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def PadOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/PadV2Options.py b/ethosu/vela/tflite/PadV2Options.py index aaa67935..62bfbc78 100644 --- a/ethosu/vela/tflite/PadV2Options.py +++ b/ethosu/vela/tflite/PadV2Options.py @@ -28,9 +28,11 @@ class PadV2Options(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def PadV2OptionsStart(builder): builder.StartObject(0) -def Start(builder): - return PadV2OptionsStart(builder) -def PadV2OptionsEnd(builder): return builder.EndObject() -def End(builder): - return PadV2OptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def PadV2OptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def PadV2OptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Padding.py b/ethosu/vela/tflite/Padding.py index 168bf74c..6027f4b5 100644 --- a/ethosu/vela/tflite/Padding.py +++ b/ethosu/vela/tflite/Padding.py @@ -5,3 +5,4 @@ class Padding(object): SAME = 0 VALID = 1 + diff --git a/ethosu/vela/tflite/Pool2DOptions.py b/ethosu/vela/tflite/Pool2DOptions.py index 169c13c6..e7e16237 100644 --- a/ethosu/vela/tflite/Pool2DOptions.py +++ b/ethosu/vela/tflite/Pool2DOptions.py @@ -70,27 +70,35 @@ class Pool2DOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def Pool2DOptionsStart(builder): builder.StartObject(6) -def Start(builder): - return Pool2DOptionsStart(builder) -def Pool2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def AddPadding(builder, padding): - return Pool2DOptionsAddPadding(builder, padding) -def Pool2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def AddStrideW(builder, strideW): - return Pool2DOptionsAddStrideW(builder, strideW) -def Pool2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def AddStrideH(builder, strideH): - return Pool2DOptionsAddStrideH(builder, strideH) -def Pool2DOptionsAddFilterWidth(builder, filterWidth): builder.PrependInt32Slot(3, filterWidth, 0) -def AddFilterWidth(builder, filterWidth): - return Pool2DOptionsAddFilterWidth(builder, filterWidth) -def Pool2DOptionsAddFilterHeight(builder, filterHeight): builder.PrependInt32Slot(4, filterHeight, 0) -def AddFilterHeight(builder, filterHeight): - return Pool2DOptionsAddFilterHeight(builder, filterHeight) -def Pool2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(5, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return Pool2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def Pool2DOptionsEnd(builder): return builder.EndObject() -def End(builder): - return Pool2DOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(6) +def Pool2DOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) +def Pool2DOptionsAddPadding(builder, padding): + """This method is deprecated. Please switch to AddPadding.""" + return AddPadding(builder, padding) +def AddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) +def Pool2DOptionsAddStrideW(builder, strideW): + """This method is deprecated. Please switch to AddStrideW.""" + return AddStrideW(builder, strideW) +def AddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) +def Pool2DOptionsAddStrideH(builder, strideH): + """This method is deprecated. Please switch to AddStrideH.""" + return AddStrideH(builder, strideH) +def AddFilterWidth(builder, filterWidth): builder.PrependInt32Slot(3, filterWidth, 0) +def Pool2DOptionsAddFilterWidth(builder, filterWidth): + """This method is deprecated. Please switch to AddFilterWidth.""" + return AddFilterWidth(builder, filterWidth) +def AddFilterHeight(builder, filterHeight): builder.PrependInt32Slot(4, filterHeight, 0) +def Pool2DOptionsAddFilterHeight(builder, filterHeight): + """This method is deprecated. Please switch to AddFilterHeight.""" + return AddFilterHeight(builder, filterHeight) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(5, fusedActivationFunction, 0) +def Pool2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def End(builder): return builder.EndObject() +def Pool2DOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/PowOptions.py b/ethosu/vela/tflite/PowOptions.py index 4d9fd3db..0ce6adec 100644 --- a/ethosu/vela/tflite/PowOptions.py +++ b/ethosu/vela/tflite/PowOptions.py @@ -28,9 +28,11 @@ class PowOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def PowOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return PowOptionsStart(builder) -def PowOptionsEnd(builder): return builder.EndObject() -def End(builder): - return PowOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def PowOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def PowOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/QuantizationDetails.py b/ethosu/vela/tflite/QuantizationDetails.py index 8d53af96..7159efbd 100644 --- a/ethosu/vela/tflite/QuantizationDetails.py +++ b/ethosu/vela/tflite/QuantizationDetails.py @@ -5,3 +5,4 @@ class QuantizationDetails(object): NONE = 0 CustomQuantization = 1 + diff --git a/ethosu/vela/tflite/QuantizationParameters.py b/ethosu/vela/tflite/QuantizationParameters.py index 0a27af0e..8b6a35e5 100644 --- a/ethosu/vela/tflite/QuantizationParameters.py +++ b/ethosu/vela/tflite/QuantizationParameters.py @@ -160,42 +160,55 @@ class QuantizationParameters(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def QuantizationParametersStart(builder): builder.StartObject(7) -def Start(builder): - return QuantizationParametersStart(builder) -def QuantizationParametersAddMin(builder, min): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(min), 0) -def AddMin(builder, min): - return QuantizationParametersAddMin(builder, min) -def QuantizationParametersStartMinVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartMinVector(builder, numElems): - return QuantizationParametersStartMinVector(builder, numElems) -def QuantizationParametersAddMax(builder, max): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(max), 0) -def AddMax(builder, max): - return QuantizationParametersAddMax(builder, max) -def QuantizationParametersStartMaxVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartMaxVector(builder, numElems): - return QuantizationParametersStartMaxVector(builder, numElems) -def QuantizationParametersAddScale(builder, scale): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(scale), 0) -def AddScale(builder, scale): - return QuantizationParametersAddScale(builder, scale) -def QuantizationParametersStartScaleVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartScaleVector(builder, numElems): - return QuantizationParametersStartScaleVector(builder, numElems) -def QuantizationParametersAddZeroPoint(builder, zeroPoint): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(zeroPoint), 0) -def AddZeroPoint(builder, zeroPoint): - return QuantizationParametersAddZeroPoint(builder, zeroPoint) -def QuantizationParametersStartZeroPointVector(builder, numElems): return builder.StartVector(8, numElems, 8) -def StartZeroPointVector(builder, numElems): - return QuantizationParametersStartZeroPointVector(builder, numElems) -def QuantizationParametersAddDetailsType(builder, detailsType): builder.PrependUint8Slot(4, detailsType, 0) -def AddDetailsType(builder, detailsType): - return QuantizationParametersAddDetailsType(builder, detailsType) -def QuantizationParametersAddDetails(builder, details): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(details), 0) -def AddDetails(builder, details): - return QuantizationParametersAddDetails(builder, details) -def QuantizationParametersAddQuantizedDimension(builder, quantizedDimension): builder.PrependInt32Slot(6, quantizedDimension, 0) -def AddQuantizedDimension(builder, quantizedDimension): - return QuantizationParametersAddQuantizedDimension(builder, quantizedDimension) -def QuantizationParametersEnd(builder): return builder.EndObject() -def End(builder): - return QuantizationParametersEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(7) +def QuantizationParametersStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddMin(builder, min): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(min), 0) +def QuantizationParametersAddMin(builder, min): + """This method is deprecated. Please switch to AddMin.""" + return AddMin(builder, min) +def StartMinVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def QuantizationParametersStartMinVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartMinVector(builder, numElems) +def AddMax(builder, max): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(max), 0) +def QuantizationParametersAddMax(builder, max): + """This method is deprecated. Please switch to AddMax.""" + return AddMax(builder, max) +def StartMaxVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def QuantizationParametersStartMaxVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartMaxVector(builder, numElems) +def AddScale(builder, scale): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(scale), 0) +def QuantizationParametersAddScale(builder, scale): + """This method is deprecated. Please switch to AddScale.""" + return AddScale(builder, scale) +def StartScaleVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def QuantizationParametersStartScaleVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartScaleVector(builder, numElems) +def AddZeroPoint(builder, zeroPoint): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(zeroPoint), 0) +def QuantizationParametersAddZeroPoint(builder, zeroPoint): + """This method is deprecated. Please switch to AddZeroPoint.""" + return AddZeroPoint(builder, zeroPoint) +def StartZeroPointVector(builder, numElems): return builder.StartVector(8, numElems, 8) +def QuantizationParametersStartZeroPointVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartZeroPointVector(builder, numElems) +def AddDetailsType(builder, detailsType): builder.PrependUint8Slot(4, detailsType, 0) +def QuantizationParametersAddDetailsType(builder, detailsType): + """This method is deprecated. Please switch to AddDetailsType.""" + return AddDetailsType(builder, detailsType) +def AddDetails(builder, details): builder.PrependUOffsetTRelativeSlot(5, flatbuffers.number_types.UOffsetTFlags.py_type(details), 0) +def QuantizationParametersAddDetails(builder, details): + """This method is deprecated. Please switch to AddDetails.""" + return AddDetails(builder, details) +def AddQuantizedDimension(builder, quantizedDimension): builder.PrependInt32Slot(6, quantizedDimension, 0) +def QuantizationParametersAddQuantizedDimension(builder, quantizedDimension): + """This method is deprecated. Please switch to AddQuantizedDimension.""" + return AddQuantizedDimension(builder, quantizedDimension) +def End(builder): return builder.EndObject() +def QuantizationParametersEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/QuantizeOptions.py b/ethosu/vela/tflite/QuantizeOptions.py index f7469290..404a2cfc 100644 --- a/ethosu/vela/tflite/QuantizeOptions.py +++ b/ethosu/vela/tflite/QuantizeOptions.py @@ -28,9 +28,11 @@ class QuantizeOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def QuantizeOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return QuantizeOptionsStart(builder) -def QuantizeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return QuantizeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def QuantizeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def QuantizeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/RNNOptions.py b/ethosu/vela/tflite/RNNOptions.py index c891508d..67c48011 100644 --- a/ethosu/vela/tflite/RNNOptions.py +++ b/ethosu/vela/tflite/RNNOptions.py @@ -42,15 +42,19 @@ class RNNOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def RNNOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return RNNOptionsStart(builder) -def RNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return RNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def RNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(1, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return RNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def RNNOptionsEnd(builder): return builder.EndObject() -def End(builder): - return RNNOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def RNNOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def RNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(1, asymmetricQuantizeInputs, 0) +def RNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def RNNOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/RandomOptions.py b/ethosu/vela/tflite/RandomOptions.py index e107dcda..e9411ffd 100644 --- a/ethosu/vela/tflite/RandomOptions.py +++ b/ethosu/vela/tflite/RandomOptions.py @@ -32,25 +32,29 @@ class RandomOptions(object): def Seed(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 self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos) return 0 # RandomOptions def Seed2(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 self._tab.Get(flatbuffers.number_types.Int64Flags, o + self._tab.Pos) return 0 -def RandomOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return RandomOptionsStart(builder) -def RandomOptionsAddSeed(builder, seed): builder.PrependInt32Slot(0, seed, 0) -def AddSeed(builder, seed): - return RandomOptionsAddSeed(builder, seed) -def RandomOptionsAddSeed2(builder, seed2): builder.PrependInt32Slot(1, seed2, 0) -def AddSeed2(builder, seed2): - return RandomOptionsAddSeed2(builder, seed2) -def RandomOptionsEnd(builder): return builder.EndObject() -def End(builder): - return RandomOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def RandomOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddSeed(builder, seed): builder.PrependInt64Slot(0, seed, 0) +def RandomOptionsAddSeed(builder, seed): + """This method is deprecated. Please switch to AddSeed.""" + return AddSeed(builder, seed) +def AddSeed2(builder, seed2): builder.PrependInt64Slot(1, seed2, 0) +def RandomOptionsAddSeed2(builder, seed2): + """This method is deprecated. Please switch to AddSeed2.""" + return AddSeed2(builder, seed2) +def End(builder): return builder.EndObject() +def RandomOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/RangeOptions.py b/ethosu/vela/tflite/RangeOptions.py index d6907971..fdc73176 100644 --- a/ethosu/vela/tflite/RangeOptions.py +++ b/ethosu/vela/tflite/RangeOptions.py @@ -28,9 +28,11 @@ class RangeOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def RangeOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return RangeOptionsStart(builder) -def RangeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return RangeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def RangeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def RangeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/RankOptions.py b/ethosu/vela/tflite/RankOptions.py index dde41498..64ea9979 100644 --- a/ethosu/vela/tflite/RankOptions.py +++ b/ethosu/vela/tflite/RankOptions.py @@ -28,9 +28,11 @@ class RankOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def RankOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return RankOptionsStart(builder) -def RankOptionsEnd(builder): return builder.EndObject() -def End(builder): - return RankOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def RankOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def RankOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ReadVariableOptions.py b/ethosu/vela/tflite/ReadVariableOptions.py index 14421790..468ad27a 100644 --- a/ethosu/vela/tflite/ReadVariableOptions.py +++ b/ethosu/vela/tflite/ReadVariableOptions.py @@ -28,9 +28,11 @@ class ReadVariableOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def ReadVariableOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return ReadVariableOptionsStart(builder) -def ReadVariableOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ReadVariableOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def ReadVariableOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def ReadVariableOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ReducerOptions.py b/ethosu/vela/tflite/ReducerOptions.py index e5f37d78..45318056 100644 --- a/ethosu/vela/tflite/ReducerOptions.py +++ b/ethosu/vela/tflite/ReducerOptions.py @@ -35,12 +35,15 @@ class ReducerOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def ReducerOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return ReducerOptionsStart(builder) -def ReducerOptionsAddKeepDims(builder, keepDims): builder.PrependBoolSlot(0, keepDims, 0) -def AddKeepDims(builder, keepDims): - return ReducerOptionsAddKeepDims(builder, keepDims) -def ReducerOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ReducerOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def ReducerOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddKeepDims(builder, keepDims): builder.PrependBoolSlot(0, keepDims, 0) +def ReducerOptionsAddKeepDims(builder, keepDims): + """This method is deprecated. Please switch to AddKeepDims.""" + return AddKeepDims(builder, keepDims) +def End(builder): return builder.EndObject() +def ReducerOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ReshapeOptions.py b/ethosu/vela/tflite/ReshapeOptions.py index d22a91b8..204fa69b 100644 --- a/ethosu/vela/tflite/ReshapeOptions.py +++ b/ethosu/vela/tflite/ReshapeOptions.py @@ -55,15 +55,19 @@ class ReshapeOptions(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def ReshapeOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return ReshapeOptionsStart(builder) -def ReshapeOptionsAddNewShape(builder, newShape): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(newShape), 0) -def AddNewShape(builder, newShape): - return ReshapeOptionsAddNewShape(builder, newShape) -def ReshapeOptionsStartNewShapeVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartNewShapeVector(builder, numElems): - return ReshapeOptionsStartNewShapeVector(builder, numElems) -def ReshapeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ReshapeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def ReshapeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddNewShape(builder, newShape): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(newShape), 0) +def ReshapeOptionsAddNewShape(builder, newShape): + """This method is deprecated. Please switch to AddNewShape.""" + return AddNewShape(builder, newShape) +def StartNewShapeVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def ReshapeOptionsStartNewShapeVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartNewShapeVector(builder, numElems) +def End(builder): return builder.EndObject() +def ReshapeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ResizeBilinearOptions.py b/ethosu/vela/tflite/ResizeBilinearOptions.py index c481a8aa..ce7fe451 100644 --- a/ethosu/vela/tflite/ResizeBilinearOptions.py +++ b/ethosu/vela/tflite/ResizeBilinearOptions.py @@ -42,15 +42,19 @@ class ResizeBilinearOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def ResizeBilinearOptionsStart(builder): builder.StartObject(4) -def Start(builder): - return ResizeBilinearOptionsStart(builder) -def ResizeBilinearOptionsAddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(2, alignCorners, 0) -def AddAlignCorners(builder, alignCorners): - return ResizeBilinearOptionsAddAlignCorners(builder, alignCorners) -def ResizeBilinearOptionsAddHalfPixelCenters(builder, halfPixelCenters): builder.PrependBoolSlot(3, halfPixelCenters, 0) -def AddHalfPixelCenters(builder, halfPixelCenters): - return ResizeBilinearOptionsAddHalfPixelCenters(builder, halfPixelCenters) -def ResizeBilinearOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ResizeBilinearOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(4) +def ResizeBilinearOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(2, alignCorners, 0) +def ResizeBilinearOptionsAddAlignCorners(builder, alignCorners): + """This method is deprecated. Please switch to AddAlignCorners.""" + return AddAlignCorners(builder, alignCorners) +def AddHalfPixelCenters(builder, halfPixelCenters): builder.PrependBoolSlot(3, halfPixelCenters, 0) +def ResizeBilinearOptionsAddHalfPixelCenters(builder, halfPixelCenters): + """This method is deprecated. Please switch to AddHalfPixelCenters.""" + return AddHalfPixelCenters(builder, halfPixelCenters) +def End(builder): return builder.EndObject() +def ResizeBilinearOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ResizeNearestNeighborOptions.py b/ethosu/vela/tflite/ResizeNearestNeighborOptions.py index 84b888a8..4eeba35a 100644 --- a/ethosu/vela/tflite/ResizeNearestNeighborOptions.py +++ b/ethosu/vela/tflite/ResizeNearestNeighborOptions.py @@ -42,15 +42,19 @@ class ResizeNearestNeighborOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def ResizeNearestNeighborOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return ResizeNearestNeighborOptionsStart(builder) -def ResizeNearestNeighborOptionsAddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(0, alignCorners, 0) -def AddAlignCorners(builder, alignCorners): - return ResizeNearestNeighborOptionsAddAlignCorners(builder, alignCorners) -def ResizeNearestNeighborOptionsAddHalfPixelCenters(builder, halfPixelCenters): builder.PrependBoolSlot(1, halfPixelCenters, 0) -def AddHalfPixelCenters(builder, halfPixelCenters): - return ResizeNearestNeighborOptionsAddHalfPixelCenters(builder, halfPixelCenters) -def ResizeNearestNeighborOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ResizeNearestNeighborOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def ResizeNearestNeighborOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddAlignCorners(builder, alignCorners): builder.PrependBoolSlot(0, alignCorners, 0) +def ResizeNearestNeighborOptionsAddAlignCorners(builder, alignCorners): + """This method is deprecated. Please switch to AddAlignCorners.""" + return AddAlignCorners(builder, alignCorners) +def AddHalfPixelCenters(builder, halfPixelCenters): builder.PrependBoolSlot(1, halfPixelCenters, 0) +def ResizeNearestNeighborOptionsAddHalfPixelCenters(builder, halfPixelCenters): + """This method is deprecated. Please switch to AddHalfPixelCenters.""" + return AddHalfPixelCenters(builder, halfPixelCenters) +def End(builder): return builder.EndObject() +def ResizeNearestNeighborOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ReverseSequenceOptions.py b/ethosu/vela/tflite/ReverseSequenceOptions.py index 63c449bb..e4b00288 100644 --- a/ethosu/vela/tflite/ReverseSequenceOptions.py +++ b/ethosu/vela/tflite/ReverseSequenceOptions.py @@ -42,15 +42,19 @@ class ReverseSequenceOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def ReverseSequenceOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return ReverseSequenceOptionsStart(builder) -def ReverseSequenceOptionsAddSeqDim(builder, seqDim): builder.PrependInt32Slot(0, seqDim, 0) -def AddSeqDim(builder, seqDim): - return ReverseSequenceOptionsAddSeqDim(builder, seqDim) -def ReverseSequenceOptionsAddBatchDim(builder, batchDim): builder.PrependInt32Slot(1, batchDim, 0) -def AddBatchDim(builder, batchDim): - return ReverseSequenceOptionsAddBatchDim(builder, batchDim) -def ReverseSequenceOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ReverseSequenceOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def ReverseSequenceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddSeqDim(builder, seqDim): builder.PrependInt32Slot(0, seqDim, 0) +def ReverseSequenceOptionsAddSeqDim(builder, seqDim): + """This method is deprecated. Please switch to AddSeqDim.""" + return AddSeqDim(builder, seqDim) +def AddBatchDim(builder, batchDim): builder.PrependInt32Slot(1, batchDim, 0) +def ReverseSequenceOptionsAddBatchDim(builder, batchDim): + """This method is deprecated. Please switch to AddBatchDim.""" + return AddBatchDim(builder, batchDim) +def End(builder): return builder.EndObject() +def ReverseSequenceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ReverseV2Options.py b/ethosu/vela/tflite/ReverseV2Options.py index 2d6d516d..9dae7acf 100644 --- a/ethosu/vela/tflite/ReverseV2Options.py +++ b/ethosu/vela/tflite/ReverseV2Options.py @@ -28,9 +28,11 @@ class ReverseV2Options(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def ReverseV2OptionsStart(builder): builder.StartObject(0) -def Start(builder): - return ReverseV2OptionsStart(builder) -def ReverseV2OptionsEnd(builder): return builder.EndObject() -def End(builder): - return ReverseV2OptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def ReverseV2OptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def ReverseV2OptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Rfft2dOptions.py b/ethosu/vela/tflite/Rfft2dOptions.py index d6a3d903..ab91a882 100644 --- a/ethosu/vela/tflite/Rfft2dOptions.py +++ b/ethosu/vela/tflite/Rfft2dOptions.py @@ -28,9 +28,11 @@ class Rfft2dOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def Rfft2dOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return Rfft2dOptionsStart(builder) -def Rfft2dOptionsEnd(builder): return builder.EndObject() -def End(builder): - return Rfft2dOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def Rfft2dOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def Rfft2dOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SVDFOptions.py b/ethosu/vela/tflite/SVDFOptions.py index 3dbbad90..3b45b6af 100644 --- a/ethosu/vela/tflite/SVDFOptions.py +++ b/ethosu/vela/tflite/SVDFOptions.py @@ -49,18 +49,23 @@ class SVDFOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def SVDFOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return SVDFOptionsStart(builder) -def SVDFOptionsAddRank(builder, rank): builder.PrependInt32Slot(0, rank, 0) -def AddRank(builder, rank): - return SVDFOptionsAddRank(builder, rank) -def SVDFOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return SVDFOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def SVDFOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(2, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return SVDFOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def SVDFOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SVDFOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def SVDFOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddRank(builder, rank): builder.PrependInt32Slot(0, rank, 0) +def SVDFOptionsAddRank(builder, rank): + """This method is deprecated. Please switch to AddRank.""" + return AddRank(builder, rank) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) +def SVDFOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(2, asymmetricQuantizeInputs, 0) +def SVDFOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def SVDFOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ScatterNdOptions.py b/ethosu/vela/tflite/ScatterNdOptions.py index 682e629d..93affc9f 100644 --- a/ethosu/vela/tflite/ScatterNdOptions.py +++ b/ethosu/vela/tflite/ScatterNdOptions.py @@ -28,9 +28,11 @@ class ScatterNdOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def ScatterNdOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return ScatterNdOptionsStart(builder) -def ScatterNdOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ScatterNdOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def ScatterNdOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def ScatterNdOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SegmentSumOptions.py b/ethosu/vela/tflite/SegmentSumOptions.py index a6f499f1..482a35a0 100644 --- a/ethosu/vela/tflite/SegmentSumOptions.py +++ b/ethosu/vela/tflite/SegmentSumOptions.py @@ -28,9 +28,11 @@ class SegmentSumOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SegmentSumOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SegmentSumOptionsStart(builder) -def SegmentSumOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SegmentSumOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SegmentSumOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SegmentSumOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SelectOptions.py b/ethosu/vela/tflite/SelectOptions.py index fc61c13e..039a5189 100644 --- a/ethosu/vela/tflite/SelectOptions.py +++ b/ethosu/vela/tflite/SelectOptions.py @@ -28,9 +28,11 @@ class SelectOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SelectOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SelectOptionsStart(builder) -def SelectOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SelectOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SelectOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SelectOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SelectV2Options.py b/ethosu/vela/tflite/SelectV2Options.py index 59e4b247..b123872c 100644 --- a/ethosu/vela/tflite/SelectV2Options.py +++ b/ethosu/vela/tflite/SelectV2Options.py @@ -28,9 +28,11 @@ class SelectV2Options(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SelectV2OptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SelectV2OptionsStart(builder) -def SelectV2OptionsEnd(builder): return builder.EndObject() -def End(builder): - return SelectV2OptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SelectV2OptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SelectV2OptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SequenceRNNOptions.py b/ethosu/vela/tflite/SequenceRNNOptions.py index 3cc448a9..668acca6 100644 --- a/ethosu/vela/tflite/SequenceRNNOptions.py +++ b/ethosu/vela/tflite/SequenceRNNOptions.py @@ -49,18 +49,23 @@ class SequenceRNNOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def SequenceRNNOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return SequenceRNNOptionsStart(builder) -def SequenceRNNOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0) -def AddTimeMajor(builder, timeMajor): - return SequenceRNNOptionsAddTimeMajor(builder, timeMajor) -def SequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return SequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def SequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(2, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return SequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def SequenceRNNOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SequenceRNNOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def SequenceRNNOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(0, timeMajor, 0) +def SequenceRNNOptionsAddTimeMajor(builder, timeMajor): + """This method is deprecated. Please switch to AddTimeMajor.""" + return AddTimeMajor(builder, timeMajor) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(1, fusedActivationFunction, 0) +def SequenceRNNOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(2, asymmetricQuantizeInputs, 0) +def SequenceRNNOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def SequenceRNNOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ShapeOptions.py b/ethosu/vela/tflite/ShapeOptions.py index 6a9d6f90..92079352 100644 --- a/ethosu/vela/tflite/ShapeOptions.py +++ b/ethosu/vela/tflite/ShapeOptions.py @@ -35,12 +35,15 @@ class ShapeOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 -def ShapeOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return ShapeOptionsStart(builder) -def ShapeOptionsAddOutType(builder, outType): builder.PrependInt8Slot(0, outType, 0) -def AddOutType(builder, outType): - return ShapeOptionsAddOutType(builder, outType) -def ShapeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ShapeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def ShapeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddOutType(builder, outType): builder.PrependInt8Slot(0, outType, 0) +def ShapeOptionsAddOutType(builder, outType): + """This method is deprecated. Please switch to AddOutType.""" + return AddOutType(builder, outType) +def End(builder): return builder.EndObject() +def ShapeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SignatureDef.py b/ethosu/vela/tflite/SignatureDef.py index 2f0ac97c..787b6840 100644 --- a/ethosu/vela/tflite/SignatureDef.py +++ b/ethosu/vela/tflite/SignatureDef.py @@ -92,27 +92,35 @@ class SignatureDef(object): return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) return 0 -def SignatureDefStart(builder): builder.StartObject(5) -def Start(builder): - return SignatureDefStart(builder) -def SignatureDefAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) -def AddInputs(builder, inputs): - return SignatureDefAddInputs(builder, inputs) -def SignatureDefStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartInputsVector(builder, numElems): - return SignatureDefStartInputsVector(builder, numElems) -def SignatureDefAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) -def AddOutputs(builder, outputs): - return SignatureDefAddOutputs(builder, outputs) -def SignatureDefStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartOutputsVector(builder, numElems): - return SignatureDefStartOutputsVector(builder, numElems) -def SignatureDefAddSignatureKey(builder, signatureKey): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(signatureKey), 0) -def AddSignatureKey(builder, signatureKey): - return SignatureDefAddSignatureKey(builder, signatureKey) -def SignatureDefAddSubgraphIndex(builder, subgraphIndex): builder.PrependUint32Slot(4, subgraphIndex, 0) -def AddSubgraphIndex(builder, subgraphIndex): - return SignatureDefAddSubgraphIndex(builder, subgraphIndex) -def SignatureDefEnd(builder): return builder.EndObject() -def End(builder): - return SignatureDefEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(5) +def SignatureDefStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) +def SignatureDefAddInputs(builder, inputs): + """This method is deprecated. Please switch to AddInputs.""" + return AddInputs(builder, inputs) +def StartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SignatureDefStartInputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartInputsVector(builder, numElems) +def AddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) +def SignatureDefAddOutputs(builder, outputs): + """This method is deprecated. Please switch to AddOutputs.""" + return AddOutputs(builder, outputs) +def StartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SignatureDefStartOutputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartOutputsVector(builder, numElems) +def AddSignatureKey(builder, signatureKey): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(signatureKey), 0) +def SignatureDefAddSignatureKey(builder, signatureKey): + """This method is deprecated. Please switch to AddSignatureKey.""" + return AddSignatureKey(builder, signatureKey) +def AddSubgraphIndex(builder, subgraphIndex): builder.PrependUint32Slot(4, subgraphIndex, 0) +def SignatureDefAddSubgraphIndex(builder, subgraphIndex): + """This method is deprecated. Please switch to AddSubgraphIndex.""" + return AddSubgraphIndex(builder, subgraphIndex) +def End(builder): return builder.EndObject() +def SignatureDefEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SkipGramOptions.py b/ethosu/vela/tflite/SkipGramOptions.py index 19a59b64..c1173a58 100644 --- a/ethosu/vela/tflite/SkipGramOptions.py +++ b/ethosu/vela/tflite/SkipGramOptions.py @@ -49,18 +49,23 @@ class SkipGramOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def SkipGramOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return SkipGramOptionsStart(builder) -def SkipGramOptionsAddNgramSize(builder, ngramSize): builder.PrependInt32Slot(0, ngramSize, 0) -def AddNgramSize(builder, ngramSize): - return SkipGramOptionsAddNgramSize(builder, ngramSize) -def SkipGramOptionsAddMaxSkipSize(builder, maxSkipSize): builder.PrependInt32Slot(1, maxSkipSize, 0) -def AddMaxSkipSize(builder, maxSkipSize): - return SkipGramOptionsAddMaxSkipSize(builder, maxSkipSize) -def SkipGramOptionsAddIncludeAllNgrams(builder, includeAllNgrams): builder.PrependBoolSlot(2, includeAllNgrams, 0) -def AddIncludeAllNgrams(builder, includeAllNgrams): - return SkipGramOptionsAddIncludeAllNgrams(builder, includeAllNgrams) -def SkipGramOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SkipGramOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def SkipGramOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddNgramSize(builder, ngramSize): builder.PrependInt32Slot(0, ngramSize, 0) +def SkipGramOptionsAddNgramSize(builder, ngramSize): + """This method is deprecated. Please switch to AddNgramSize.""" + return AddNgramSize(builder, ngramSize) +def AddMaxSkipSize(builder, maxSkipSize): builder.PrependInt32Slot(1, maxSkipSize, 0) +def SkipGramOptionsAddMaxSkipSize(builder, maxSkipSize): + """This method is deprecated. Please switch to AddMaxSkipSize.""" + return AddMaxSkipSize(builder, maxSkipSize) +def AddIncludeAllNgrams(builder, includeAllNgrams): builder.PrependBoolSlot(2, includeAllNgrams, 0) +def SkipGramOptionsAddIncludeAllNgrams(builder, includeAllNgrams): + """This method is deprecated. Please switch to AddIncludeAllNgrams.""" + return AddIncludeAllNgrams(builder, includeAllNgrams) +def End(builder): return builder.EndObject() +def SkipGramOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SliceOptions.py b/ethosu/vela/tflite/SliceOptions.py index 334b7e40..83a57106 100644 --- a/ethosu/vela/tflite/SliceOptions.py +++ b/ethosu/vela/tflite/SliceOptions.py @@ -28,9 +28,11 @@ class SliceOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SliceOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SliceOptionsStart(builder) -def SliceOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SliceOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SliceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SliceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SoftmaxOptions.py b/ethosu/vela/tflite/SoftmaxOptions.py index 063b1c10..43dd7e62 100644 --- a/ethosu/vela/tflite/SoftmaxOptions.py +++ b/ethosu/vela/tflite/SoftmaxOptions.py @@ -35,12 +35,15 @@ class SoftmaxOptions(object): return self._tab.Get(flatbuffers.number_types.Float32Flags, o + self._tab.Pos) return 0.0 -def SoftmaxOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return SoftmaxOptionsStart(builder) -def SoftmaxOptionsAddBeta(builder, beta): builder.PrependFloat32Slot(0, beta, 0.0) -def AddBeta(builder, beta): - return SoftmaxOptionsAddBeta(builder, beta) -def SoftmaxOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SoftmaxOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def SoftmaxOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddBeta(builder, beta): builder.PrependFloat32Slot(0, beta, 0.0) +def SoftmaxOptionsAddBeta(builder, beta): + """This method is deprecated. Please switch to AddBeta.""" + return AddBeta(builder, beta) +def End(builder): return builder.EndObject() +def SoftmaxOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SpaceToBatchNDOptions.py b/ethosu/vela/tflite/SpaceToBatchNDOptions.py index 18031b7e..02ede8a8 100644 --- a/ethosu/vela/tflite/SpaceToBatchNDOptions.py +++ b/ethosu/vela/tflite/SpaceToBatchNDOptions.py @@ -28,9 +28,11 @@ class SpaceToBatchNDOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SpaceToBatchNDOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SpaceToBatchNDOptionsStart(builder) -def SpaceToBatchNDOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SpaceToBatchNDOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SpaceToBatchNDOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SpaceToBatchNDOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SpaceToDepthOptions.py b/ethosu/vela/tflite/SpaceToDepthOptions.py index 505e6d2f..49756cda 100644 --- a/ethosu/vela/tflite/SpaceToDepthOptions.py +++ b/ethosu/vela/tflite/SpaceToDepthOptions.py @@ -35,12 +35,15 @@ class SpaceToDepthOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def SpaceToDepthOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return SpaceToDepthOptionsStart(builder) -def SpaceToDepthOptionsAddBlockSize(builder, blockSize): builder.PrependInt32Slot(0, blockSize, 0) -def AddBlockSize(builder, blockSize): - return SpaceToDepthOptionsAddBlockSize(builder, blockSize) -def SpaceToDepthOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SpaceToDepthOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def SpaceToDepthOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddBlockSize(builder, blockSize): builder.PrependInt32Slot(0, blockSize, 0) +def SpaceToDepthOptionsAddBlockSize(builder, blockSize): + """This method is deprecated. Please switch to AddBlockSize.""" + return AddBlockSize(builder, blockSize) +def End(builder): return builder.EndObject() +def SpaceToDepthOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SparseIndexVector.py b/ethosu/vela/tflite/SparseIndexVector.py index e2c9db78..fd35a03b 100644 --- a/ethosu/vela/tflite/SparseIndexVector.py +++ b/ethosu/vela/tflite/SparseIndexVector.py @@ -7,3 +7,4 @@ class SparseIndexVector(object): Int32Vector = 1 Uint16Vector = 2 Uint8Vector = 3 + diff --git a/ethosu/vela/tflite/SparseToDenseOptions.py b/ethosu/vela/tflite/SparseToDenseOptions.py index 185b2a0c..0cf22b45 100644 --- a/ethosu/vela/tflite/SparseToDenseOptions.py +++ b/ethosu/vela/tflite/SparseToDenseOptions.py @@ -35,12 +35,15 @@ class SparseToDenseOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def SparseToDenseOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return SparseToDenseOptionsStart(builder) -def SparseToDenseOptionsAddValidateIndices(builder, validateIndices): builder.PrependBoolSlot(0, validateIndices, 0) -def AddValidateIndices(builder, validateIndices): - return SparseToDenseOptionsAddValidateIndices(builder, validateIndices) -def SparseToDenseOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SparseToDenseOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def SparseToDenseOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddValidateIndices(builder, validateIndices): builder.PrependBoolSlot(0, validateIndices, 0) +def SparseToDenseOptionsAddValidateIndices(builder, validateIndices): + """This method is deprecated. Please switch to AddValidateIndices.""" + return AddValidateIndices(builder, validateIndices) +def End(builder): return builder.EndObject() +def SparseToDenseOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SparsityParameters.py b/ethosu/vela/tflite/SparsityParameters.py index 75e8b127..76485f4b 100644 --- a/ethosu/vela/tflite/SparsityParameters.py +++ b/ethosu/vela/tflite/SparsityParameters.py @@ -107,27 +107,35 @@ class SparsityParameters(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) return o == 0 -def SparsityParametersStart(builder): builder.StartObject(3) -def Start(builder): - return SparsityParametersStart(builder) -def SparsityParametersAddTraversalOrder(builder, traversalOrder): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(traversalOrder), 0) -def AddTraversalOrder(builder, traversalOrder): - return SparsityParametersAddTraversalOrder(builder, traversalOrder) -def SparsityParametersStartTraversalOrderVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartTraversalOrderVector(builder, numElems): - return SparsityParametersStartTraversalOrderVector(builder, numElems) -def SparsityParametersAddBlockMap(builder, blockMap): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(blockMap), 0) -def AddBlockMap(builder, blockMap): - return SparsityParametersAddBlockMap(builder, blockMap) -def SparsityParametersStartBlockMapVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartBlockMapVector(builder, numElems): - return SparsityParametersStartBlockMapVector(builder, numElems) -def SparsityParametersAddDimMetadata(builder, dimMetadata): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(dimMetadata), 0) -def AddDimMetadata(builder, dimMetadata): - return SparsityParametersAddDimMetadata(builder, dimMetadata) -def SparsityParametersStartDimMetadataVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartDimMetadataVector(builder, numElems): - return SparsityParametersStartDimMetadataVector(builder, numElems) -def SparsityParametersEnd(builder): return builder.EndObject() -def End(builder): - return SparsityParametersEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def SparsityParametersStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddTraversalOrder(builder, traversalOrder): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(traversalOrder), 0) +def SparsityParametersAddTraversalOrder(builder, traversalOrder): + """This method is deprecated. Please switch to AddTraversalOrder.""" + return AddTraversalOrder(builder, traversalOrder) +def StartTraversalOrderVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SparsityParametersStartTraversalOrderVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartTraversalOrderVector(builder, numElems) +def AddBlockMap(builder, blockMap): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(blockMap), 0) +def SparsityParametersAddBlockMap(builder, blockMap): + """This method is deprecated. Please switch to AddBlockMap.""" + return AddBlockMap(builder, blockMap) +def StartBlockMapVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SparsityParametersStartBlockMapVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartBlockMapVector(builder, numElems) +def AddDimMetadata(builder, dimMetadata): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(dimMetadata), 0) +def SparsityParametersAddDimMetadata(builder, dimMetadata): + """This method is deprecated. Please switch to AddDimMetadata.""" + return AddDimMetadata(builder, dimMetadata) +def StartDimMetadataVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SparsityParametersStartDimMetadataVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartDimMetadataVector(builder, numElems) +def End(builder): return builder.EndObject() +def SparsityParametersEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SplitOptions.py b/ethosu/vela/tflite/SplitOptions.py index c7dd92f9..b5ed2a43 100644 --- a/ethosu/vela/tflite/SplitOptions.py +++ b/ethosu/vela/tflite/SplitOptions.py @@ -35,12 +35,15 @@ class SplitOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def SplitOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return SplitOptionsStart(builder) -def SplitOptionsAddNumSplits(builder, numSplits): builder.PrependInt32Slot(0, numSplits, 0) -def AddNumSplits(builder, numSplits): - return SplitOptionsAddNumSplits(builder, numSplits) -def SplitOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SplitOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def SplitOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddNumSplits(builder, numSplits): builder.PrependInt32Slot(0, numSplits, 0) +def SplitOptionsAddNumSplits(builder, numSplits): + """This method is deprecated. Please switch to AddNumSplits.""" + return AddNumSplits(builder, numSplits) +def End(builder): return builder.EndObject() +def SplitOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SplitVOptions.py b/ethosu/vela/tflite/SplitVOptions.py index 64355061..393b4ab2 100644 --- a/ethosu/vela/tflite/SplitVOptions.py +++ b/ethosu/vela/tflite/SplitVOptions.py @@ -35,12 +35,15 @@ class SplitVOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def SplitVOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return SplitVOptionsStart(builder) -def SplitVOptionsAddNumSplits(builder, numSplits): builder.PrependInt32Slot(0, numSplits, 0) -def AddNumSplits(builder, numSplits): - return SplitVOptionsAddNumSplits(builder, numSplits) -def SplitVOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SplitVOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def SplitVOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddNumSplits(builder, numSplits): builder.PrependInt32Slot(0, numSplits, 0) +def SplitVOptionsAddNumSplits(builder, numSplits): + """This method is deprecated. Please switch to AddNumSplits.""" + return AddNumSplits(builder, numSplits) +def End(builder): return builder.EndObject() +def SplitVOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SquareOptions.py b/ethosu/vela/tflite/SquareOptions.py index c1bdca8e..e1b40f47 100644 --- a/ethosu/vela/tflite/SquareOptions.py +++ b/ethosu/vela/tflite/SquareOptions.py @@ -28,9 +28,11 @@ class SquareOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SquareOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SquareOptionsStart(builder) -def SquareOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SquareOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SquareOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SquareOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SquaredDifferenceOptions.py b/ethosu/vela/tflite/SquaredDifferenceOptions.py index 115455b5..3b5bedf1 100644 --- a/ethosu/vela/tflite/SquaredDifferenceOptions.py +++ b/ethosu/vela/tflite/SquaredDifferenceOptions.py @@ -28,9 +28,11 @@ class SquaredDifferenceOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def SquaredDifferenceOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return SquaredDifferenceOptionsStart(builder) -def SquaredDifferenceOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SquaredDifferenceOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def SquaredDifferenceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def SquaredDifferenceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SqueezeOptions.py b/ethosu/vela/tflite/SqueezeOptions.py index 1a8a6af4..c0840d29 100644 --- a/ethosu/vela/tflite/SqueezeOptions.py +++ b/ethosu/vela/tflite/SqueezeOptions.py @@ -55,15 +55,19 @@ class SqueezeOptions(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def SqueezeOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return SqueezeOptionsStart(builder) -def SqueezeOptionsAddSqueezeDims(builder, squeezeDims): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(squeezeDims), 0) -def AddSqueezeDims(builder, squeezeDims): - return SqueezeOptionsAddSqueezeDims(builder, squeezeDims) -def SqueezeOptionsStartSqueezeDimsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartSqueezeDimsVector(builder, numElems): - return SqueezeOptionsStartSqueezeDimsVector(builder, numElems) -def SqueezeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SqueezeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def SqueezeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddSqueezeDims(builder, squeezeDims): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(squeezeDims), 0) +def SqueezeOptionsAddSqueezeDims(builder, squeezeDims): + """This method is deprecated. Please switch to AddSqueezeDims.""" + return AddSqueezeDims(builder, squeezeDims) +def StartSqueezeDimsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SqueezeOptionsStartSqueezeDimsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartSqueezeDimsVector(builder, numElems) +def End(builder): return builder.EndObject() +def SqueezeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/StridedSliceOptions.py b/ethosu/vela/tflite/StridedSliceOptions.py index ccc2701c..6e34fe57 100644 --- a/ethosu/vela/tflite/StridedSliceOptions.py +++ b/ethosu/vela/tflite/StridedSliceOptions.py @@ -63,24 +63,31 @@ class StridedSliceOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def StridedSliceOptionsStart(builder): builder.StartObject(5) -def Start(builder): - return StridedSliceOptionsStart(builder) -def StridedSliceOptionsAddBeginMask(builder, beginMask): builder.PrependInt32Slot(0, beginMask, 0) -def AddBeginMask(builder, beginMask): - return StridedSliceOptionsAddBeginMask(builder, beginMask) -def StridedSliceOptionsAddEndMask(builder, endMask): builder.PrependInt32Slot(1, endMask, 0) -def AddEndMask(builder, endMask): - return StridedSliceOptionsAddEndMask(builder, endMask) -def StridedSliceOptionsAddEllipsisMask(builder, ellipsisMask): builder.PrependInt32Slot(2, ellipsisMask, 0) -def AddEllipsisMask(builder, ellipsisMask): - return StridedSliceOptionsAddEllipsisMask(builder, ellipsisMask) -def StridedSliceOptionsAddNewAxisMask(builder, newAxisMask): builder.PrependInt32Slot(3, newAxisMask, 0) -def AddNewAxisMask(builder, newAxisMask): - return StridedSliceOptionsAddNewAxisMask(builder, newAxisMask) -def StridedSliceOptionsAddShrinkAxisMask(builder, shrinkAxisMask): builder.PrependInt32Slot(4, shrinkAxisMask, 0) -def AddShrinkAxisMask(builder, shrinkAxisMask): - return StridedSliceOptionsAddShrinkAxisMask(builder, shrinkAxisMask) -def StridedSliceOptionsEnd(builder): return builder.EndObject() -def End(builder): - return StridedSliceOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(5) +def StridedSliceOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddBeginMask(builder, beginMask): builder.PrependInt32Slot(0, beginMask, 0) +def StridedSliceOptionsAddBeginMask(builder, beginMask): + """This method is deprecated. Please switch to AddBeginMask.""" + return AddBeginMask(builder, beginMask) +def AddEndMask(builder, endMask): builder.PrependInt32Slot(1, endMask, 0) +def StridedSliceOptionsAddEndMask(builder, endMask): + """This method is deprecated. Please switch to AddEndMask.""" + return AddEndMask(builder, endMask) +def AddEllipsisMask(builder, ellipsisMask): builder.PrependInt32Slot(2, ellipsisMask, 0) +def StridedSliceOptionsAddEllipsisMask(builder, ellipsisMask): + """This method is deprecated. Please switch to AddEllipsisMask.""" + return AddEllipsisMask(builder, ellipsisMask) +def AddNewAxisMask(builder, newAxisMask): builder.PrependInt32Slot(3, newAxisMask, 0) +def StridedSliceOptionsAddNewAxisMask(builder, newAxisMask): + """This method is deprecated. Please switch to AddNewAxisMask.""" + return AddNewAxisMask(builder, newAxisMask) +def AddShrinkAxisMask(builder, shrinkAxisMask): builder.PrependInt32Slot(4, shrinkAxisMask, 0) +def StridedSliceOptionsAddShrinkAxisMask(builder, shrinkAxisMask): + """This method is deprecated. Please switch to AddShrinkAxisMask.""" + return AddShrinkAxisMask(builder, shrinkAxisMask) +def End(builder): return builder.EndObject() +def StridedSliceOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SubGraph.py b/ethosu/vela/tflite/SubGraph.py index 6ceb2772..d93c5b51 100644 --- a/ethosu/vela/tflite/SubGraph.py +++ b/ethosu/vela/tflite/SubGraph.py @@ -35,7 +35,7 @@ class SubGraph(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .Tensor import Tensor + from tflite.Tensor import Tensor obj = Tensor() obj.Init(self._tab.Bytes, x) return obj @@ -114,7 +114,7 @@ class SubGraph(object): x = self._tab.Vector(o) x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4 x = self._tab.Indirect(x) - from .Operator import Operator + from tflite.Operator import Operator obj = Operator() obj.Init(self._tab.Bytes, x) return obj @@ -139,36 +139,47 @@ class SubGraph(object): return self._tab.String(o + self._tab.Pos) return None -def SubGraphStart(builder): builder.StartObject(5) -def Start(builder): - return SubGraphStart(builder) -def SubGraphAddTensors(builder, tensors): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(tensors), 0) -def AddTensors(builder, tensors): - return SubGraphAddTensors(builder, tensors) -def SubGraphStartTensorsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartTensorsVector(builder, numElems): - return SubGraphStartTensorsVector(builder, numElems) -def SubGraphAddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) -def AddInputs(builder, inputs): - return SubGraphAddInputs(builder, inputs) -def SubGraphStartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartInputsVector(builder, numElems): - return SubGraphStartInputsVector(builder, numElems) -def SubGraphAddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) -def AddOutputs(builder, outputs): - return SubGraphAddOutputs(builder, outputs) -def SubGraphStartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartOutputsVector(builder, numElems): - return SubGraphStartOutputsVector(builder, numElems) -def SubGraphAddOperators(builder, operators): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(operators), 0) -def AddOperators(builder, operators): - return SubGraphAddOperators(builder, operators) -def SubGraphStartOperatorsVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartOperatorsVector(builder, numElems): - return SubGraphStartOperatorsVector(builder, numElems) -def SubGraphAddName(builder, name): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def AddName(builder, name): - return SubGraphAddName(builder, name) -def SubGraphEnd(builder): return builder.EndObject() -def End(builder): - return SubGraphEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(5) +def SubGraphStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddTensors(builder, tensors): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(tensors), 0) +def SubGraphAddTensors(builder, tensors): + """This method is deprecated. Please switch to AddTensors.""" + return AddTensors(builder, tensors) +def StartTensorsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SubGraphStartTensorsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartTensorsVector(builder, numElems) +def AddInputs(builder, inputs): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(inputs), 0) +def SubGraphAddInputs(builder, inputs): + """This method is deprecated. Please switch to AddInputs.""" + return AddInputs(builder, inputs) +def StartInputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SubGraphStartInputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartInputsVector(builder, numElems) +def AddOutputs(builder, outputs): builder.PrependUOffsetTRelativeSlot(2, flatbuffers.number_types.UOffsetTFlags.py_type(outputs), 0) +def SubGraphAddOutputs(builder, outputs): + """This method is deprecated. Please switch to AddOutputs.""" + return AddOutputs(builder, outputs) +def StartOutputsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SubGraphStartOutputsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartOutputsVector(builder, numElems) +def AddOperators(builder, operators): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(operators), 0) +def SubGraphAddOperators(builder, operators): + """This method is deprecated. Please switch to AddOperators.""" + return AddOperators(builder, operators) +def StartOperatorsVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def SubGraphStartOperatorsVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartOperatorsVector(builder, numElems) +def AddName(builder, name): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) +def SubGraphAddName(builder, name): + """This method is deprecated. Please switch to AddName.""" + return AddName(builder, name) +def End(builder): return builder.EndObject() +def SubGraphEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/SubOptions.py b/ethosu/vela/tflite/SubOptions.py index 65e9f5a0..de2df8a1 100644 --- a/ethosu/vela/tflite/SubOptions.py +++ b/ethosu/vela/tflite/SubOptions.py @@ -42,15 +42,19 @@ class SubOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return True -def SubOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return SubOptionsStart(builder) -def SubOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return SubOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def SubOptionsAddPotScaleInt16(builder, potScaleInt16): builder.PrependBoolSlot(1, potScaleInt16, 1) -def AddPotScaleInt16(builder, potScaleInt16): - return SubOptionsAddPotScaleInt16(builder, potScaleInt16) -def SubOptionsEnd(builder): return builder.EndObject() -def End(builder): - return SubOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def SubOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def SubOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddPotScaleInt16(builder, potScaleInt16): builder.PrependBoolSlot(1, potScaleInt16, 1) +def SubOptionsAddPotScaleInt16(builder, potScaleInt16): + """This method is deprecated. Please switch to AddPotScaleInt16.""" + return AddPotScaleInt16(builder, potScaleInt16) +def End(builder): return builder.EndObject() +def SubOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Tensor.py b/ethosu/vela/tflite/Tensor.py index 335599e5..4284319a 100644 --- a/ethosu/vela/tflite/Tensor.py +++ b/ethosu/vela/tflite/Tensor.py @@ -81,7 +81,7 @@ class Tensor(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) if o != 0: x = self._tab.Indirect(o + self._tab.Pos) - from .QuantizationParameters import QuantizationParameters + from tflite.QuantizationParameters import QuantizationParameters obj = QuantizationParameters() obj.Init(self._tab.Bytes, x) return obj @@ -99,7 +99,7 @@ class Tensor(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) if o != 0: x = self._tab.Indirect(o + self._tab.Pos) - from .SparsityParameters import SparsityParameters + from tflite.SparsityParameters import SparsityParameters obj = SparsityParameters() obj.Init(self._tab.Bytes, x) return obj @@ -132,39 +132,51 @@ class Tensor(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18)) return o == 0 -def TensorStart(builder): builder.StartObject(8) -def Start(builder): - return TensorStart(builder) -def TensorAddShape(builder, shape): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(shape), 0) -def AddShape(builder, shape): - return TensorAddShape(builder, shape) -def TensorStartShapeVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartShapeVector(builder, numElems): - return TensorStartShapeVector(builder, numElems) -def TensorAddType(builder, type): builder.PrependInt8Slot(1, type, 0) -def AddType(builder, type): - return TensorAddType(builder, type) -def TensorAddBuffer(builder, buffer): builder.PrependUint32Slot(2, buffer, 0) -def AddBuffer(builder, buffer): - return TensorAddBuffer(builder, buffer) -def TensorAddName(builder, name): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def AddName(builder, name): - return TensorAddName(builder, name) -def TensorAddQuantization(builder, quantization): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(quantization), 0) -def AddQuantization(builder, quantization): - return TensorAddQuantization(builder, quantization) -def TensorAddIsVariable(builder, isVariable): builder.PrependBoolSlot(5, isVariable, 0) -def AddIsVariable(builder, isVariable): - return TensorAddIsVariable(builder, isVariable) -def TensorAddSparsity(builder, sparsity): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(sparsity), 0) -def AddSparsity(builder, sparsity): - return TensorAddSparsity(builder, sparsity) -def TensorAddShapeSignature(builder, shapeSignature): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(shapeSignature), 0) -def AddShapeSignature(builder, shapeSignature): - return TensorAddShapeSignature(builder, shapeSignature) -def TensorStartShapeSignatureVector(builder, numElems): return builder.StartVector(4, numElems, 4) -def StartShapeSignatureVector(builder, numElems): - return TensorStartShapeSignatureVector(builder, numElems) -def TensorEnd(builder): return builder.EndObject() -def End(builder): - return TensorEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(8) +def TensorStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddShape(builder, shape): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(shape), 0) +def TensorAddShape(builder, shape): + """This method is deprecated. Please switch to AddShape.""" + return AddShape(builder, shape) +def StartShapeVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def TensorStartShapeVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartShapeVector(builder, numElems) +def AddType(builder, type): builder.PrependInt8Slot(1, type, 0) +def TensorAddType(builder, type): + """This method is deprecated. Please switch to AddType.""" + return AddType(builder, type) +def AddBuffer(builder, buffer): builder.PrependUint32Slot(2, buffer, 0) +def TensorAddBuffer(builder, buffer): + """This method is deprecated. Please switch to AddBuffer.""" + return AddBuffer(builder, buffer) +def AddName(builder, name): builder.PrependUOffsetTRelativeSlot(3, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) +def TensorAddName(builder, name): + """This method is deprecated. Please switch to AddName.""" + return AddName(builder, name) +def AddQuantization(builder, quantization): builder.PrependUOffsetTRelativeSlot(4, flatbuffers.number_types.UOffsetTFlags.py_type(quantization), 0) +def TensorAddQuantization(builder, quantization): + """This method is deprecated. Please switch to AddQuantization.""" + return AddQuantization(builder, quantization) +def AddIsVariable(builder, isVariable): builder.PrependBoolSlot(5, isVariable, 0) +def TensorAddIsVariable(builder, isVariable): + """This method is deprecated. Please switch to AddIsVariable.""" + return AddIsVariable(builder, isVariable) +def AddSparsity(builder, sparsity): builder.PrependUOffsetTRelativeSlot(6, flatbuffers.number_types.UOffsetTFlags.py_type(sparsity), 0) +def TensorAddSparsity(builder, sparsity): + """This method is deprecated. Please switch to AddSparsity.""" + return AddSparsity(builder, sparsity) +def AddShapeSignature(builder, shapeSignature): builder.PrependUOffsetTRelativeSlot(7, flatbuffers.number_types.UOffsetTFlags.py_type(shapeSignature), 0) +def TensorAddShapeSignature(builder, shapeSignature): + """This method is deprecated. Please switch to AddShapeSignature.""" + return AddShapeSignature(builder, shapeSignature) +def StartShapeSignatureVector(builder, numElems): return builder.StartVector(4, numElems, 4) +def TensorStartShapeSignatureVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartShapeSignatureVector(builder, numElems) +def End(builder): return builder.EndObject() +def TensorEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/TensorMap.py b/ethosu/vela/tflite/TensorMap.py index 3ade6fa7..b3572f8b 100644 --- a/ethosu/vela/tflite/TensorMap.py +++ b/ethosu/vela/tflite/TensorMap.py @@ -42,15 +42,19 @@ class TensorMap(object): return self._tab.Get(flatbuffers.number_types.Uint32Flags, o + self._tab.Pos) return 0 -def TensorMapStart(builder): builder.StartObject(2) -def Start(builder): - return TensorMapStart(builder) -def TensorMapAddName(builder, name): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) -def AddName(builder, name): - return TensorMapAddName(builder, name) -def TensorMapAddTensorIndex(builder, tensorIndex): builder.PrependUint32Slot(1, tensorIndex, 0) -def AddTensorIndex(builder, tensorIndex): - return TensorMapAddTensorIndex(builder, tensorIndex) -def TensorMapEnd(builder): return builder.EndObject() -def End(builder): - return TensorMapEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def TensorMapStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddName(builder, name): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(name), 0) +def TensorMapAddName(builder, name): + """This method is deprecated. Please switch to AddName.""" + return AddName(builder, name) +def AddTensorIndex(builder, tensorIndex): builder.PrependUint32Slot(1, tensorIndex, 0) +def TensorMapAddTensorIndex(builder, tensorIndex): + """This method is deprecated. Please switch to AddTensorIndex.""" + return AddTensorIndex(builder, tensorIndex) +def End(builder): return builder.EndObject() +def TensorMapEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/TensorType.py b/ethosu/vela/tflite/TensorType.py index 373cd7b4..30306998 100644 --- a/ethosu/vela/tflite/TensorType.py +++ b/ethosu/vela/tflite/TensorType.py @@ -19,3 +19,5 @@ class TensorType(object): RESOURCE = 13 VARIANT = 14 UINT32 = 15 + UINT16 = 16 + diff --git a/ethosu/vela/tflite/TileOptions.py b/ethosu/vela/tflite/TileOptions.py index 645cf34a..926585a9 100644 --- a/ethosu/vela/tflite/TileOptions.py +++ b/ethosu/vela/tflite/TileOptions.py @@ -28,9 +28,11 @@ class TileOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def TileOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return TileOptionsStart(builder) -def TileOptionsEnd(builder): return builder.EndObject() -def End(builder): - return TileOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def TileOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def TileOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/TopKV2Options.py b/ethosu/vela/tflite/TopKV2Options.py index da080741..849ab528 100644 --- a/ethosu/vela/tflite/TopKV2Options.py +++ b/ethosu/vela/tflite/TopKV2Options.py @@ -28,9 +28,11 @@ class TopKV2Options(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def TopKV2OptionsStart(builder): builder.StartObject(0) -def Start(builder): - return TopKV2OptionsStart(builder) -def TopKV2OptionsEnd(builder): return builder.EndObject() -def End(builder): - return TopKV2OptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def TopKV2OptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def TopKV2OptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/TransposeConvOptions.py b/ethosu/vela/tflite/TransposeConvOptions.py index a11a79e9..09153b03 100644 --- a/ethosu/vela/tflite/TransposeConvOptions.py +++ b/ethosu/vela/tflite/TransposeConvOptions.py @@ -49,18 +49,23 @@ class TransposeConvOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def TransposeConvOptionsStart(builder): builder.StartObject(3) -def Start(builder): - return TransposeConvOptionsStart(builder) -def TransposeConvOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) -def AddPadding(builder, padding): - return TransposeConvOptionsAddPadding(builder, padding) -def TransposeConvOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) -def AddStrideW(builder, strideW): - return TransposeConvOptionsAddStrideW(builder, strideW) -def TransposeConvOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) -def AddStrideH(builder, strideH): - return TransposeConvOptionsAddStrideH(builder, strideH) -def TransposeConvOptionsEnd(builder): return builder.EndObject() -def End(builder): - return TransposeConvOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(3) +def TransposeConvOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) +def TransposeConvOptionsAddPadding(builder, padding): + """This method is deprecated. Please switch to AddPadding.""" + return AddPadding(builder, padding) +def AddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) +def TransposeConvOptionsAddStrideW(builder, strideW): + """This method is deprecated. Please switch to AddStrideW.""" + return AddStrideW(builder, strideW) +def AddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) +def TransposeConvOptionsAddStrideH(builder, strideH): + """This method is deprecated. Please switch to AddStrideH.""" + return AddStrideH(builder, strideH) +def End(builder): return builder.EndObject() +def TransposeConvOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/TransposeOptions.py b/ethosu/vela/tflite/TransposeOptions.py index 7dd90ff7..662c5420 100644 --- a/ethosu/vela/tflite/TransposeOptions.py +++ b/ethosu/vela/tflite/TransposeOptions.py @@ -28,9 +28,11 @@ class TransposeOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def TransposeOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return TransposeOptionsStart(builder) -def TransposeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return TransposeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def TransposeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def TransposeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Uint16Vector.py b/ethosu/vela/tflite/Uint16Vector.py index 61549c5d..55d49f57 100644 --- a/ethosu/vela/tflite/Uint16Vector.py +++ b/ethosu/vela/tflite/Uint16Vector.py @@ -55,15 +55,19 @@ class Uint16Vector(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def Uint16VectorStart(builder): builder.StartObject(1) -def Start(builder): - return Uint16VectorStart(builder) -def Uint16VectorAddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0) -def AddValues(builder, values): - return Uint16VectorAddValues(builder, values) -def Uint16VectorStartValuesVector(builder, numElems): return builder.StartVector(2, numElems, 2) -def StartValuesVector(builder, numElems): - return Uint16VectorStartValuesVector(builder, numElems) -def Uint16VectorEnd(builder): return builder.EndObject() -def End(builder): - return Uint16VectorEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def Uint16VectorStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0) +def Uint16VectorAddValues(builder, values): + """This method is deprecated. Please switch to AddValues.""" + return AddValues(builder, values) +def StartValuesVector(builder, numElems): return builder.StartVector(2, numElems, 2) +def Uint16VectorStartValuesVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartValuesVector(builder, numElems) +def End(builder): return builder.EndObject() +def Uint16VectorEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/Uint8Vector.py b/ethosu/vela/tflite/Uint8Vector.py index 1f29c600..9f078378 100644 --- a/ethosu/vela/tflite/Uint8Vector.py +++ b/ethosu/vela/tflite/Uint8Vector.py @@ -55,15 +55,19 @@ class Uint8Vector(object): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) return o == 0 -def Uint8VectorStart(builder): builder.StartObject(1) -def Start(builder): - return Uint8VectorStart(builder) -def Uint8VectorAddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0) -def AddValues(builder, values): - return Uint8VectorAddValues(builder, values) -def Uint8VectorStartValuesVector(builder, numElems): return builder.StartVector(1, numElems, 1) -def StartValuesVector(builder, numElems): - return Uint8VectorStartValuesVector(builder, numElems) -def Uint8VectorEnd(builder): return builder.EndObject() -def End(builder): - return Uint8VectorEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def Uint8VectorStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddValues(builder, values): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(values), 0) +def Uint8VectorAddValues(builder, values): + """This method is deprecated. Please switch to AddValues.""" + return AddValues(builder, values) +def StartValuesVector(builder, numElems): return builder.StartVector(1, numElems, 1) +def Uint8VectorStartValuesVector(builder, numElems): + """This method is deprecated. Please switch to Start.""" + return StartValuesVector(builder, numElems) +def End(builder): return builder.EndObject() +def Uint8VectorEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/UnidirectionalSequenceLSTMOptions.py b/ethosu/vela/tflite/UnidirectionalSequenceLSTMOptions.py index 16641a74..374a33ac 100644 --- a/ethosu/vela/tflite/UnidirectionalSequenceLSTMOptions.py +++ b/ethosu/vela/tflite/UnidirectionalSequenceLSTMOptions.py @@ -63,24 +63,31 @@ class UnidirectionalSequenceLSTMOptions(object): return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos)) return False -def UnidirectionalSequenceLSTMOptionsStart(builder): builder.StartObject(5) -def Start(builder): - return UnidirectionalSequenceLSTMOptionsStart(builder) -def UnidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) -def AddFusedActivationFunction(builder, fusedActivationFunction): - return UnidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction) -def UnidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) -def AddCellClip(builder, cellClip): - return UnidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip) -def UnidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) -def AddProjClip(builder, projClip): - return UnidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip) -def UnidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(3, timeMajor, 0) -def AddTimeMajor(builder, timeMajor): - return UnidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor) -def UnidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(4, asymmetricQuantizeInputs, 0) -def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): - return UnidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) -def UnidirectionalSequenceLSTMOptionsEnd(builder): return builder.EndObject() -def End(builder): - return UnidirectionalSequenceLSTMOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(5) +def UnidirectionalSequenceLSTMOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(0, fusedActivationFunction, 0) +def UnidirectionalSequenceLSTMOptionsAddFusedActivationFunction(builder, fusedActivationFunction): + """This method is deprecated. Please switch to AddFusedActivationFunction.""" + return AddFusedActivationFunction(builder, fusedActivationFunction) +def AddCellClip(builder, cellClip): builder.PrependFloat32Slot(1, cellClip, 0.0) +def UnidirectionalSequenceLSTMOptionsAddCellClip(builder, cellClip): + """This method is deprecated. Please switch to AddCellClip.""" + return AddCellClip(builder, cellClip) +def AddProjClip(builder, projClip): builder.PrependFloat32Slot(2, projClip, 0.0) +def UnidirectionalSequenceLSTMOptionsAddProjClip(builder, projClip): + """This method is deprecated. Please switch to AddProjClip.""" + return AddProjClip(builder, projClip) +def AddTimeMajor(builder, timeMajor): builder.PrependBoolSlot(3, timeMajor, 0) +def UnidirectionalSequenceLSTMOptionsAddTimeMajor(builder, timeMajor): + """This method is deprecated. Please switch to AddTimeMajor.""" + return AddTimeMajor(builder, timeMajor) +def AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): builder.PrependBoolSlot(4, asymmetricQuantizeInputs, 0) +def UnidirectionalSequenceLSTMOptionsAddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs): + """This method is deprecated. Please switch to AddAsymmetricQuantizeInputs.""" + return AddAsymmetricQuantizeInputs(builder, asymmetricQuantizeInputs) +def End(builder): return builder.EndObject() +def UnidirectionalSequenceLSTMOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/UniqueOptions.py b/ethosu/vela/tflite/UniqueOptions.py index 7b21d095..3d0612f9 100644 --- a/ethosu/vela/tflite/UniqueOptions.py +++ b/ethosu/vela/tflite/UniqueOptions.py @@ -35,12 +35,15 @@ class UniqueOptions(object): return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 2 -def UniqueOptionsStart(builder): builder.StartObject(1) -def Start(builder): - return UniqueOptionsStart(builder) -def UniqueOptionsAddIdxOutType(builder, idxOutType): builder.PrependInt8Slot(0, idxOutType, 2) -def AddIdxOutType(builder, idxOutType): - return UniqueOptionsAddIdxOutType(builder, idxOutType) -def UniqueOptionsEnd(builder): return builder.EndObject() -def End(builder): - return UniqueOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(1) +def UniqueOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddIdxOutType(builder, idxOutType): builder.PrependInt8Slot(0, idxOutType, 2) +def UniqueOptionsAddIdxOutType(builder, idxOutType): + """This method is deprecated. Please switch to AddIdxOutType.""" + return AddIdxOutType(builder, idxOutType) +def End(builder): return builder.EndObject() +def UniqueOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/UnpackOptions.py b/ethosu/vela/tflite/UnpackOptions.py index f7c2a0dc..b70b0409 100644 --- a/ethosu/vela/tflite/UnpackOptions.py +++ b/ethosu/vela/tflite/UnpackOptions.py @@ -42,15 +42,19 @@ class UnpackOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def UnpackOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return UnpackOptionsStart(builder) -def UnpackOptionsAddNum(builder, num): builder.PrependInt32Slot(0, num, 0) -def AddNum(builder, num): - return UnpackOptionsAddNum(builder, num) -def UnpackOptionsAddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0) -def AddAxis(builder, axis): - return UnpackOptionsAddAxis(builder, axis) -def UnpackOptionsEnd(builder): return builder.EndObject() -def End(builder): - return UnpackOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def UnpackOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddNum(builder, num): builder.PrependInt32Slot(0, num, 0) +def UnpackOptionsAddNum(builder, num): + """This method is deprecated. Please switch to AddNum.""" + return AddNum(builder, num) +def AddAxis(builder, axis): builder.PrependInt32Slot(1, axis, 0) +def UnpackOptionsAddAxis(builder, axis): + """This method is deprecated. Please switch to AddAxis.""" + return AddAxis(builder, axis) +def End(builder): return builder.EndObject() +def UnpackOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/VarHandleOptions.py b/ethosu/vela/tflite/VarHandleOptions.py index 57305602..97164109 100644 --- a/ethosu/vela/tflite/VarHandleOptions.py +++ b/ethosu/vela/tflite/VarHandleOptions.py @@ -42,15 +42,19 @@ class VarHandleOptions(object): return self._tab.String(o + self._tab.Pos) return None -def VarHandleOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return VarHandleOptionsStart(builder) -def VarHandleOptionsAddContainer(builder, container): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(container), 0) -def AddContainer(builder, container): - return VarHandleOptionsAddContainer(builder, container) -def VarHandleOptionsAddSharedName(builder, sharedName): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(sharedName), 0) -def AddSharedName(builder, sharedName): - return VarHandleOptionsAddSharedName(builder, sharedName) -def VarHandleOptionsEnd(builder): return builder.EndObject() -def End(builder): - return VarHandleOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def VarHandleOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddContainer(builder, container): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(container), 0) +def VarHandleOptionsAddContainer(builder, container): + """This method is deprecated. Please switch to AddContainer.""" + return AddContainer(builder, container) +def AddSharedName(builder, sharedName): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(sharedName), 0) +def VarHandleOptionsAddSharedName(builder, sharedName): + """This method is deprecated. Please switch to AddSharedName.""" + return AddSharedName(builder, sharedName) +def End(builder): return builder.EndObject() +def VarHandleOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/WhereOptions.py b/ethosu/vela/tflite/WhereOptions.py index 6c6f509e..c0083a5a 100644 --- a/ethosu/vela/tflite/WhereOptions.py +++ b/ethosu/vela/tflite/WhereOptions.py @@ -28,9 +28,11 @@ class WhereOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def WhereOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return WhereOptionsStart(builder) -def WhereOptionsEnd(builder): return builder.EndObject() -def End(builder): - return WhereOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def WhereOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def WhereOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/WhileOptions.py b/ethosu/vela/tflite/WhileOptions.py index 40a386a0..eca73e5e 100644 --- a/ethosu/vela/tflite/WhileOptions.py +++ b/ethosu/vela/tflite/WhileOptions.py @@ -42,15 +42,19 @@ class WhileOptions(object): return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 -def WhileOptionsStart(builder): builder.StartObject(2) -def Start(builder): - return WhileOptionsStart(builder) -def WhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex): builder.PrependInt32Slot(0, condSubgraphIndex, 0) -def AddCondSubgraphIndex(builder, condSubgraphIndex): - return WhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex) -def WhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex): builder.PrependInt32Slot(1, bodySubgraphIndex, 0) -def AddBodySubgraphIndex(builder, bodySubgraphIndex): - return WhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex) -def WhileOptionsEnd(builder): return builder.EndObject() -def End(builder): - return WhileOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(2) +def WhileOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def AddCondSubgraphIndex(builder, condSubgraphIndex): builder.PrependInt32Slot(0, condSubgraphIndex, 0) +def WhileOptionsAddCondSubgraphIndex(builder, condSubgraphIndex): + """This method is deprecated. Please switch to AddCondSubgraphIndex.""" + return AddCondSubgraphIndex(builder, condSubgraphIndex) +def AddBodySubgraphIndex(builder, bodySubgraphIndex): builder.PrependInt32Slot(1, bodySubgraphIndex, 0) +def WhileOptionsAddBodySubgraphIndex(builder, bodySubgraphIndex): + """This method is deprecated. Please switch to AddBodySubgraphIndex.""" + return AddBodySubgraphIndex(builder, bodySubgraphIndex) +def End(builder): return builder.EndObject() +def WhileOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite/ZerosLikeOptions.py b/ethosu/vela/tflite/ZerosLikeOptions.py index 62f60511..2b32f87c 100644 --- a/ethosu/vela/tflite/ZerosLikeOptions.py +++ b/ethosu/vela/tflite/ZerosLikeOptions.py @@ -28,9 +28,11 @@ class ZerosLikeOptions(object): def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) -def ZerosLikeOptionsStart(builder): builder.StartObject(0) -def Start(builder): - return ZerosLikeOptionsStart(builder) -def ZerosLikeOptionsEnd(builder): return builder.EndObject() -def End(builder): - return ZerosLikeOptionsEnd(builder)
\ No newline at end of file +def Start(builder): builder.StartObject(0) +def ZerosLikeOptionsStart(builder): + """This method is deprecated. Please switch to Start.""" + return Start(builder) +def End(builder): return builder.EndObject() +def ZerosLikeOptionsEnd(builder): + """This method is deprecated. Please switch to End.""" + return End(builder)
\ No newline at end of file diff --git a/ethosu/vela/tflite_mapping.py b/ethosu/vela/tflite_mapping.py index e12267f0..7b487ae4 100644 --- a/ethosu/vela/tflite_mapping.py +++ b/ethosu/vela/tflite_mapping.py @@ -37,6 +37,7 @@ from .tflite import BatchToSpaceNDOptions from .tflite import BidirectionalSequenceLSTMOptions from .tflite import BidirectionalSequenceRNNOptions from .tflite import BroadcastToOptions +from .tflite import BucketizeOptions from .tflite import CallOnceOptions from .tflite import CallOptions from .tflite import CastOptions @@ -51,6 +52,7 @@ from .tflite import DepthToSpaceOptions from .tflite import DepthwiseConv2DOptions from .tflite import DequantizeOptions from .tflite import DivOptions +from .tflite import DynamicUpdateSliceOptions from .tflite import EmbeddingLookupSparseOptions from .tflite import EqualOptions from .tflite import ExpandDimsOptions @@ -62,6 +64,7 @@ from .tflite import FloorModOptions from .tflite import FullyConnectedOptions from .tflite import GatherNdOptions from .tflite import GatherOptions +from .tflite import GeluOptions from .tflite import GreaterEqualOptions from .tflite import GreaterOptions from .tflite import HardSwishOptions @@ -168,6 +171,7 @@ datatype_map = { TensorType.RESOURCE: DataType.resource, TensorType.VARIANT: DataType.variant, TensorType.UINT32: DataType.uint32, + TensorType.UINT16: DataType.uint16, } datatype_inv_map = inverse_map(datatype_map) @@ -180,6 +184,7 @@ datatype_inv_map[DataType.qint32] = TensorType.INT32 datatype_map_numpy = { TensorType.UINT8: np.uint8, + TensorType.UINT16: np.uint16, TensorType.UINT32: np.uint32, TensorType.UINT64: np.uint64, TensorType.INT8: np.int8, @@ -313,6 +318,9 @@ builtin_options_map = { BuiltinOptions.ReadVariableOptions: ReadVariableOptions.ReadVariableOptions, BuiltinOptions.AssignVariableOptions: AssignVariableOptions.AssignVariableOptions, BuiltinOptions.RandomOptions: RandomOptions.RandomOptions, + BuiltinOptions.BucketizeOptions: BucketizeOptions.BucketizeOptions, + BuiltinOptions.DynamicUpdateSliceOptions: DynamicUpdateSliceOptions.DynamicUpdateSliceOptions, + BuiltinOptions.GeluOptions: GeluOptions.GeluOptions, } @@ -941,6 +949,22 @@ builtin_operator_map = { ), TFLITE_NO_INDICES, ), + BuiltinOperator.BUCKETIZE: ( + Op.Bucketize, + OptionsSerializer( + "BucketizeOptions", + ("boundaries", "boundaries_as_numpy", "boundaries_length", "boundaries_is_none"), + ), + TFLITE_NO_INDICES, + ), + BuiltinOperator.RANDOM_UNIFORM: (Op.RandomUniform, None, TFLITE_NO_INDICES), + BuiltinOperator.MULTINOMIAL: (Op.Multinomial, None, TFLITE_NO_INDICES), + BuiltinOperator.GELU: (Op.Gelu, OptionsSerializer("GeluOptions", ("approximate",)), TFLITE_NO_INDICES), + BuiltinOperator.DYNAMIC_UPDATE_SLICE: ( + Op.DynamicUpdateSlice, + OptionsSerializer("DynamicUpdateSliceOptions"), + TFLITE_NO_INDICES, + ), BuiltinOperator.CUSTOM: (Op.Custom, CustomOptionsSerializer(), TFLITE_NO_INDICES), } |