diff options
Diffstat (limited to 'ethosu/vela/tflite/DepthwiseConv2DOptions.py')
-rw-r--r-- | ethosu/vela/tflite/DepthwiseConv2DOptions.py | 63 |
1 files changed, 36 insertions, 27 deletions
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 |