MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / quant_dequant

Method quant_dequant

lightx2v/utils/quant_utils.py:141–151  ·  view source on GitHub ↗
(
        self,
        tensor,
        scales,
        zeros,
        qmax,
        qmin,
    )

Source from the content-addressed store, hash-verified

139 return tensor
140
141 def quant_dequant(
142 self,
143 tensor,
144 scales,
145 zeros,
146 qmax,
147 qmin,
148 ):
149 tensor = self.quant(tensor, scales, zeros, qmax, qmin)
150 tensor = self.dequant(tensor, scales, zeros)
151 return tensor
152
153
154class FloatQuantizer(BaseQuantizer):

Callers

nothing calls this directly

Calls 2

quantMethod · 0.95
dequantMethod · 0.95

Tested by

no test coverage detected