# automatically generated by the FlatBuffers compiler, do not modify

# namespace: MNN

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

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

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

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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    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

    # EltwiseSuperAcmeQuantizedParam
    def Mode(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 EltwiseSuperAcmeQuantizedParamStart(builder): builder.StartObject(15)
def Start(builder):
    return EltwiseSuperAcmeQuantizedParamStart(builder)
def EltwiseSuperAcmeQuantizedParamAddInput1Offset(builder, input1Offset): builder.PrependInt32Slot(0, input1Offset, 0)
def AddInput1Offset(builder, input1Offset):
    return EltwiseSuperAcmeQuantizedParamAddInput1Offset(builder, input1Offset)
def EltwiseSuperAcmeQuantizedParamAddInput2Offset(builder, input2Offset): builder.PrependInt32Slot(1, input2Offset, 0)
def AddInput2Offset(builder, input2Offset):
    return EltwiseSuperAcmeQuantizedParamAddInput2Offset(builder, input2Offset)
def EltwiseSuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset): builder.PrependInt32Slot(2, outputOffset, 0)
def AddOutputOffset(builder, outputOffset):
    return EltwiseSuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset)
def EltwiseSuperAcmeQuantizedParamAddInput1Multiplier(builder, input1Multiplier): builder.PrependInt32Slot(3, input1Multiplier, 0)
def AddInput1Multiplier(builder, input1Multiplier):
    return EltwiseSuperAcmeQuantizedParamAddInput1Multiplier(builder, input1Multiplier)
def EltwiseSuperAcmeQuantizedParamAddInput2Multiplier(builder, input2Multiplier): builder.PrependInt32Slot(4, input2Multiplier, 0)
def AddInput2Multiplier(builder, input2Multiplier):
    return EltwiseSuperAcmeQuantizedParamAddInput2Multiplier(builder, input2Multiplier)
def EltwiseSuperAcmeQuantizedParamAddOutputMultiplier(builder, outputMultiplier): builder.PrependInt32Slot(5, outputMultiplier, 0)
def AddOutputMultiplier(builder, outputMultiplier):
    return EltwiseSuperAcmeQuantizedParamAddOutputMultiplier(builder, outputMultiplier)
def EltwiseSuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin): builder.PrependInt32Slot(6, outputActivationMin, 0)
def AddOutputActivationMin(builder, outputActivationMin):
    return EltwiseSuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin)
def EltwiseSuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax): builder.PrependInt32Slot(7, outputActivationMax, 0)
def AddOutputActivationMax(builder, outputActivationMax):
    return EltwiseSuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax)
def EltwiseSuperAcmeQuantizedParamAddMLeftShiftResult1(builder, mLeftShiftResult1): builder.PrependInt32Slot(8, mLeftShiftResult1, 0)
def AddMLeftShiftResult1(builder, mLeftShiftResult1):
    return EltwiseSuperAcmeQuantizedParamAddMLeftShiftResult1(builder, mLeftShiftResult1)
def EltwiseSuperAcmeQuantizedParamAddMLeftShiftResult2(builder, mLeftShiftResult2): builder.PrependInt32Slot(9, mLeftShiftResult2, 0)
def AddMLeftShiftResult2(builder, mLeftShiftResult2):
    return EltwiseSuperAcmeQuantizedParamAddMLeftShiftResult2(builder, mLeftShiftResult2)
def EltwiseSuperAcmeQuantizedParamAddMRightShift1(builder, mRightShift1): builder.PrependInt32Slot(10, mRightShift1, 0)
def AddMRightShift1(builder, mRightShift1):
    return EltwiseSuperAcmeQuantizedParamAddMRightShift1(builder, mRightShift1)
def EltwiseSuperAcmeQuantizedParamAddMRightShift2(builder, mRightShift2): builder.PrependInt32Slot(11, mRightShift2, 0)
def AddMRightShift2(builder, mRightShift2):
    return EltwiseSuperAcmeQuantizedParamAddMRightShift2(builder, mRightShift2)
def EltwiseSuperAcmeQuantizedParamAddMLeftShiftOut(builder, mLeftShiftOut): builder.PrependInt32Slot(12, mLeftShiftOut, 0)
def AddMLeftShiftOut(builder, mLeftShiftOut):
    return EltwiseSuperAcmeQuantizedParamAddMLeftShiftOut(builder, mLeftShiftOut)
def EltwiseSuperAcmeQuantizedParamAddMRightShiftOut(builder, mRightShiftOut): builder.PrependInt32Slot(13, mRightShiftOut, 0)
def AddMRightShiftOut(builder, mRightShiftOut):
    return EltwiseSuperAcmeQuantizedParamAddMRightShiftOut(builder, mRightShiftOut)
def EltwiseSuperAcmeQuantizedParamAddMode(builder, mode): builder.PrependInt32Slot(14, mode, 0)
def AddMode(builder, mode):
    return EltwiseSuperAcmeQuantizedParamAddMode(builder, mode)
def EltwiseSuperAcmeQuantizedParamEnd(builder): return builder.EndObject()
def End(builder):
    return EltwiseSuperAcmeQuantizedParamEnd(builder)