# automatically generated by the FlatBuffers compiler, do not modify

# namespace: MNN

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

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

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

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

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

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

    # BinarySuperAcmeQuantizedParam
    def OutputOffset(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

    # BinarySuperAcmeQuantizedParam
    def Input1Multiplier(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

    # BinarySuperAcmeQuantizedParam
    def Input2Multiplier(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

    # BinarySuperAcmeQuantizedParam
    def OutputMultiplier(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

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

    # BinarySuperAcmeQuantizedParam
    def OutputActivationMax(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

    # BinarySuperAcmeQuantizedParam
    def MLeftShiftResult1(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

    # BinarySuperAcmeQuantizedParam
    def MLeftShiftResult2(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

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

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

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

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

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

def BinarySuperAcmeQuantizedParamStart(builder): builder.StartObject(15)
def Start(builder):
    return BinarySuperAcmeQuantizedParamStart(builder)
def BinarySuperAcmeQuantizedParamAddInput1Offset(builder, input1Offset): builder.PrependInt32Slot(0, input1Offset, 0)
def AddInput1Offset(builder, input1Offset):
    return BinarySuperAcmeQuantizedParamAddInput1Offset(builder, input1Offset)
def BinarySuperAcmeQuantizedParamAddInput2Offset(builder, input2Offset): builder.PrependInt32Slot(1, input2Offset, 0)
def AddInput2Offset(builder, input2Offset):
    return BinarySuperAcmeQuantizedParamAddInput2Offset(builder, input2Offset)
def BinarySuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset): builder.PrependInt32Slot(2, outputOffset, 0)
def AddOutputOffset(builder, outputOffset):
    return BinarySuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset)
def BinarySuperAcmeQuantizedParamAddInput1Multiplier(builder, input1Multiplier): builder.PrependInt32Slot(3, input1Multiplier, 0)
def AddInput1Multiplier(builder, input1Multiplier):
    return BinarySuperAcmeQuantizedParamAddInput1Multiplier(builder, input1Multiplier)
def BinarySuperAcmeQuantizedParamAddInput2Multiplier(builder, input2Multiplier): builder.PrependInt32Slot(4, input2Multiplier, 0)
def AddInput2Multiplier(builder, input2Multiplier):
    return BinarySuperAcmeQuantizedParamAddInput2Multiplier(builder, input2Multiplier)
def BinarySuperAcmeQuantizedParamAddOutputMultiplier(builder, outputMultiplier): builder.PrependInt32Slot(5, outputMultiplier, 0)
def AddOutputMultiplier(builder, outputMultiplier):
    return BinarySuperAcmeQuantizedParamAddOutputMultiplier(builder, outputMultiplier)
def BinarySuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin): builder.PrependInt32Slot(6, outputActivationMin, 0)
def AddOutputActivationMin(builder, outputActivationMin):
    return BinarySuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin)
def BinarySuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax): builder.PrependInt32Slot(7, outputActivationMax, 0)
def AddOutputActivationMax(builder, outputActivationMax):
    return BinarySuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax)
def BinarySuperAcmeQuantizedParamAddMLeftShiftResult1(builder, mLeftShiftResult1): builder.PrependInt32Slot(8, mLeftShiftResult1, 0)
def AddMLeftShiftResult1(builder, mLeftShiftResult1):
    return BinarySuperAcmeQuantizedParamAddMLeftShiftResult1(builder, mLeftShiftResult1)
def BinarySuperAcmeQuantizedParamAddMLeftShiftResult2(builder, mLeftShiftResult2): builder.PrependInt32Slot(9, mLeftShiftResult2, 0)
def AddMLeftShiftResult2(builder, mLeftShiftResult2):
    return BinarySuperAcmeQuantizedParamAddMLeftShiftResult2(builder, mLeftShiftResult2)
def BinarySuperAcmeQuantizedParamAddMRightShift1(builder, mRightShift1): builder.PrependInt32Slot(10, mRightShift1, 0)
def AddMRightShift1(builder, mRightShift1):
    return BinarySuperAcmeQuantizedParamAddMRightShift1(builder, mRightShift1)
def BinarySuperAcmeQuantizedParamAddMRightShift2(builder, mRightShift2): builder.PrependInt32Slot(11, mRightShift2, 0)
def AddMRightShift2(builder, mRightShift2):
    return BinarySuperAcmeQuantizedParamAddMRightShift2(builder, mRightShift2)
def BinarySuperAcmeQuantizedParamAddMLeftShiftOut(builder, mLeftShiftOut): builder.PrependInt32Slot(12, mLeftShiftOut, 0)
def AddMLeftShiftOut(builder, mLeftShiftOut):
    return BinarySuperAcmeQuantizedParamAddMLeftShiftOut(builder, mLeftShiftOut)
def BinarySuperAcmeQuantizedParamAddMRightShiftOut(builder, mRightShiftOut): builder.PrependInt32Slot(13, mRightShiftOut, 0)
def AddMRightShiftOut(builder, mRightShiftOut):
    return BinarySuperAcmeQuantizedParamAddMRightShiftOut(builder, mRightShiftOut)
def BinarySuperAcmeQuantizedParamAddType(builder, type): builder.PrependInt32Slot(14, type, 0)
def AddType(builder, type):
    return BinarySuperAcmeQuantizedParamAddType(builder, type)
def BinarySuperAcmeQuantizedParamEnd(builder): return builder.EndObject()
def End(builder):
    return BinarySuperAcmeQuantizedParamEnd(builder)