# automatically generated by the FlatBuffers compiler, do not modify

# namespace: MNN

import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()

class MatMulSuperAcmeQuantizedParam(object):
    __slots__ = ['_tab']

    @classmethod
    def GetRootAs(cls, buf, offset=0):
        n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
        x = MatMulSuperAcmeQuantizedParam()
        x.Init(buf, n + offset)
        return x

    @classmethod
    def GetRootAsMatMulSuperAcmeQuantizedParam(cls, buf, offset=0):
        """This method is deprecated. Please switch to GetRootAs."""
        return cls.GetRootAs(buf, offset)
    # MatMulSuperAcmeQuantizedParam
    def Init(self, buf, pos):
        self._tab = flatbuffers.table.Table(buf, pos)

    # MatMulSuperAcmeQuantizedParam
    def MquantizeMultiplier(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 0

    # MatMulSuperAcmeQuantizedParam
    def MRightShift(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

    # MatMulSuperAcmeQuantizedParam
    def OutputActivationMin(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

    # MatMulSuperAcmeQuantizedParam
    def OutputActivationMax(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # MatMulSuperAcmeQuantizedParam
    def Input1Offset(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 0

    # MatMulSuperAcmeQuantizedParam
    def Input2Offset(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 0

    # MatMulSuperAcmeQuantizedParam
    def OutputOffset(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # MatMulSuperAcmeQuantizedParam
    def MOffsetSum(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # MatMulSuperAcmeQuantizedParam
    def MBiasquantizeMultiplier(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

    # MatMulSuperAcmeQuantizedParam
    def MBiasShift(self):
        o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
        if o != 0:
            return self._tab.Get(flatbuffers.number_types.Int32Flags, o + self._tab.Pos)
        return 0

def MatMulSuperAcmeQuantizedParamStart(builder): builder.StartObject(10)
def Start(builder):
    return MatMulSuperAcmeQuantizedParamStart(builder)
def MatMulSuperAcmeQuantizedParamAddMquantizeMultiplier(builder, mquantizeMultiplier): builder.PrependInt32Slot(0, mquantizeMultiplier, 0)
def AddMquantizeMultiplier(builder, mquantizeMultiplier):
    return MatMulSuperAcmeQuantizedParamAddMquantizeMultiplier(builder, mquantizeMultiplier)
def MatMulSuperAcmeQuantizedParamAddMRightShift(builder, mRightShift): builder.PrependInt32Slot(1, mRightShift, 0)
def AddMRightShift(builder, mRightShift):
    return MatMulSuperAcmeQuantizedParamAddMRightShift(builder, mRightShift)
def MatMulSuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin): builder.PrependInt32Slot(2, outputActivationMin, 0)
def AddOutputActivationMin(builder, outputActivationMin):
    return MatMulSuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin)
def MatMulSuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax): builder.PrependInt32Slot(3, outputActivationMax, 0)
def AddOutputActivationMax(builder, outputActivationMax):
    return MatMulSuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax)
def MatMulSuperAcmeQuantizedParamAddInput1Offset(builder, input1Offset): builder.PrependInt32Slot(4, input1Offset, 0)
def AddInput1Offset(builder, input1Offset):
    return MatMulSuperAcmeQuantizedParamAddInput1Offset(builder, input1Offset)
def MatMulSuperAcmeQuantizedParamAddInput2Offset(builder, input2Offset): builder.PrependInt32Slot(5, input2Offset, 0)
def AddInput2Offset(builder, input2Offset):
    return MatMulSuperAcmeQuantizedParamAddInput2Offset(builder, input2Offset)
def MatMulSuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset): builder.PrependInt32Slot(6, outputOffset, 0)
def AddOutputOffset(builder, outputOffset):
    return MatMulSuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset)
def MatMulSuperAcmeQuantizedParamAddMOffsetSum(builder, mOffsetSum): builder.PrependInt32Slot(7, mOffsetSum, 0)
def AddMOffsetSum(builder, mOffsetSum):
    return MatMulSuperAcmeQuantizedParamAddMOffsetSum(builder, mOffsetSum)
def MatMulSuperAcmeQuantizedParamAddMBiasquantizeMultiplier(builder, mBiasquantizeMultiplier): builder.PrependInt32Slot(8, mBiasquantizeMultiplier, 0)
def AddMBiasquantizeMultiplier(builder, mBiasquantizeMultiplier):
    return MatMulSuperAcmeQuantizedParamAddMBiasquantizeMultiplier(builder, mBiasquantizeMultiplier)
def MatMulSuperAcmeQuantizedParamAddMBiasShift(builder, mBiasShift): builder.PrependInt32Slot(9, mBiasShift, 0)
def AddMBiasShift(builder, mBiasShift):
    return MatMulSuperAcmeQuantizedParamAddMBiasShift(builder, mBiasShift)
def MatMulSuperAcmeQuantizedParamEnd(builder): return builder.EndObject()
def End(builder):
    return MatMulSuperAcmeQuantizedParamEnd(builder)