Module tflite.Conv2DOptions
Functions
def AddDilationHFactor(builder, dilationHFactor)-
Expand source code
def AddDilationHFactor(builder, dilationHFactor): Conv2DOptionsAddDilationHFactor(builder, dilationHFactor) def AddDilationWFactor(builder, dilationWFactor)-
Expand source code
def AddDilationWFactor(builder, dilationWFactor): Conv2DOptionsAddDilationWFactor(builder, dilationWFactor) def AddFusedActivationFunction(builder, fusedActivationFunction)-
Expand source code
def AddFusedActivationFunction(builder, fusedActivationFunction): Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction) def AddPadding(builder, padding)-
Expand source code
def AddPadding(builder, padding): Conv2DOptionsAddPadding(builder, padding) def AddQuantizedBiasType(builder, quantizedBiasType)-
Expand source code
def AddQuantizedBiasType(builder, quantizedBiasType): Conv2DOptionsAddQuantizedBiasType(builder, quantizedBiasType) def AddStrideH(builder, strideH)-
Expand source code
def AddStrideH(builder, strideH): Conv2DOptionsAddStrideH(builder, strideH) def AddStrideW(builder, strideW)-
Expand source code
def AddStrideW(builder, strideW): Conv2DOptionsAddStrideW(builder, strideW) def Conv2DOptionsAddDilationHFactor(builder, dilationHFactor)-
Expand source code
def Conv2DOptionsAddDilationHFactor(builder, dilationHFactor): builder.PrependInt32Slot(5, dilationHFactor, 1) def Conv2DOptionsAddDilationWFactor(builder, dilationWFactor)-
Expand source code
def Conv2DOptionsAddDilationWFactor(builder, dilationWFactor): builder.PrependInt32Slot(4, dilationWFactor, 1) def Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction)-
Expand source code
def Conv2DOptionsAddFusedActivationFunction(builder, fusedActivationFunction): builder.PrependInt8Slot(3, fusedActivationFunction, 0) def Conv2DOptionsAddPadding(builder, padding)-
Expand source code
def Conv2DOptionsAddPadding(builder, padding): builder.PrependInt8Slot(0, padding, 0) def Conv2DOptionsAddQuantizedBiasType(builder, quantizedBiasType)-
Expand source code
def Conv2DOptionsAddQuantizedBiasType(builder, quantizedBiasType): builder.PrependInt8Slot(6, quantizedBiasType, 0) def Conv2DOptionsAddStrideH(builder, strideH)-
Expand source code
def Conv2DOptionsAddStrideH(builder, strideH): builder.PrependInt32Slot(2, strideH, 0) def Conv2DOptionsAddStrideW(builder, strideW)-
Expand source code
def Conv2DOptionsAddStrideW(builder, strideW): builder.PrependInt32Slot(1, strideW, 0) def Conv2DOptionsEnd(builder)-
Expand source code
def Conv2DOptionsEnd(builder): return builder.EndObject() def Conv2DOptionsStart(builder)-
Expand source code
def Conv2DOptionsStart(builder): builder.StartObject(7) def End(builder)-
Expand source code
def End(builder): return Conv2DOptionsEnd(builder) def Start(builder)-
Expand source code
def Start(builder): Conv2DOptionsStart(builder)
Classes
class Conv2DOptions-
Expand source code
class Conv2DOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Conv2DOptions() x.Init(buf, n + offset) return x @classmethod def GetRootAsConv2DOptions(cls, buf, offset=0): """This method is deprecated. Please switch to GetRootAs.""" return cls.GetRootAs(buf, offset) @classmethod def Conv2DOptionsBufferHasIdentifier(cls, buf, offset, size_prefixed=False): return flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x54\x46\x4C\x33", size_prefixed=size_prefixed) # Conv2DOptions def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) # Conv2DOptions def Padding(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 # Conv2DOptions def StrideW(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 0 # Conv2DOptions def StrideH(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 # Conv2DOptions def FusedActivationFunction(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 # Conv2DOptions def DilationWFactor(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 # Conv2DOptions def DilationHFactor(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 # Conv2DOptions def QuantizedBiasType(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0Static methods
def Conv2DOptionsBufferHasIdentifier(buf, offset, size_prefixed=False)def GetRootAs(buf, offset=0)def GetRootAsConv2DOptions(buf, offset=0)-
This method is deprecated. Please switch to GetRootAs.
Methods
def DilationHFactor(self)-
Expand source code
def DilationHFactor(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 def DilationWFactor(self)-
Expand source code
def DilationWFactor(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 1 def FusedActivationFunction(self)-
Expand source code
def FusedActivationFunction(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 def Init(self, buf, pos)-
Expand source code
def Init(self, buf, pos): self._tab = flatbuffers.table.Table(buf, pos) def Padding(self)-
Expand source code
def Padding(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 def QuantizedBiasType(self)-
Expand source code
def QuantizedBiasType(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int8Flags, o + self._tab.Pos) return 0 def StrideH(self)-
Expand source code
def StrideH(self): o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8)) if o != 0: return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos) return 0 def StrideW(self)-
Expand source code
def StrideW(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 0