# automatically generated by the FlatBuffers compiler, do not modify

# namespace: MNN

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

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

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

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

    # ReductionSuperAcmeQuantizedParam
    def InputZeroPoint(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

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

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

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

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

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

def ReductionSuperAcmeQuantizedParamStart(builder): builder.StartObject(6)
def Start(builder):
    return ReductionSuperAcmeQuantizedParamStart(builder)
def ReductionSuperAcmeQuantizedParamAddInputZeroPoint(builder, inputZeroPoint): builder.PrependInt32Slot(0, inputZeroPoint, 0)
def AddInputZeroPoint(builder, inputZeroPoint):
    return ReductionSuperAcmeQuantizedParamAddInputZeroPoint(builder, inputZeroPoint)
def ReductionSuperAcmeQuantizedParamAddMquantizeMultiplier(builder, mquantizeMultiplier): builder.PrependInt32Slot(1, mquantizeMultiplier, 0)
def AddMquantizeMultiplier(builder, mquantizeMultiplier):
    return ReductionSuperAcmeQuantizedParamAddMquantizeMultiplier(builder, mquantizeMultiplier)
def ReductionSuperAcmeQuantizedParamAddMRightShift(builder, mRightShift): builder.PrependInt32Slot(2, mRightShift, 0)
def AddMRightShift(builder, mRightShift):
    return ReductionSuperAcmeQuantizedParamAddMRightShift(builder, mRightShift)
def ReductionSuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin): builder.PrependInt32Slot(3, outputActivationMin, 0)
def AddOutputActivationMin(builder, outputActivationMin):
    return ReductionSuperAcmeQuantizedParamAddOutputActivationMin(builder, outputActivationMin)
def ReductionSuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax): builder.PrependInt32Slot(4, outputActivationMax, 0)
def AddOutputActivationMax(builder, outputActivationMax):
    return ReductionSuperAcmeQuantizedParamAddOutputActivationMax(builder, outputActivationMax)
def ReductionSuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset): builder.PrependInt32Slot(5, outputOffset, 0)
def AddOutputOffset(builder, outputOffset):
    return ReductionSuperAcmeQuantizedParamAddOutputOffset(builder, outputOffset)
def ReductionSuperAcmeQuantizedParamEnd(builder): return builder.EndObject()
def End(builder):
    return ReductionSuperAcmeQuantizedParamEnd(builder)