# automatically generated by the FlatBuffers compiler, do not modify

# namespace: MNN

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

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

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

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

    # ReluSuperAcmeQuantizedParam
    def InputZero(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

    # ReluSuperAcmeQuantizedParam
    def OutputZero(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

    # ReluSuperAcmeQuantizedParam
    def InputScale(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

    # ReluSuperAcmeQuantizedParam
    def OutputScale(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

def ReluSuperAcmeQuantizedParamStart(builder): builder.StartObject(4)
def Start(builder):
    return ReluSuperAcmeQuantizedParamStart(builder)
def ReluSuperAcmeQuantizedParamAddInputZero(builder, inputZero): builder.PrependInt32Slot(0, inputZero, 0)
def AddInputZero(builder, inputZero):
    return ReluSuperAcmeQuantizedParamAddInputZero(builder, inputZero)
def ReluSuperAcmeQuantizedParamAddOutputZero(builder, outputZero): builder.PrependInt32Slot(1, outputZero, 0)
def AddOutputZero(builder, outputZero):
    return ReluSuperAcmeQuantizedParamAddOutputZero(builder, outputZero)
def ReluSuperAcmeQuantizedParamAddInputScale(builder, inputScale): builder.PrependInt32Slot(2, inputScale, 0)
def AddInputScale(builder, inputScale):
    return ReluSuperAcmeQuantizedParamAddInputScale(builder, inputScale)
def ReluSuperAcmeQuantizedParamAddOutputScale(builder, outputScale): builder.PrependInt32Slot(3, outputScale, 0)
def AddOutputScale(builder, outputScale):
    return ReluSuperAcmeQuantizedParamAddOutputScale(builder, outputScale)
def ReluSuperAcmeQuantizedParamEnd(builder): return builder.EndObject()
def End(builder):
    return ReluSuperAcmeQuantizedParamEnd(builder)