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

Method dequant

lightx2v/utils/quant_utils.py:137–139  ·  view source on GitHub ↗
(self, tensor, scales, zeros)

Source from the content-addressed store, hash-verified

135 return tensor
136
137 def dequant(self, tensor, scales, zeros):
138 tensor = (tensor - zeros) * scales
139 return tensor
140
141 def quant_dequant(
142 self,

Callers 1

quant_dequantMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected