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

Method __init__

lightx2v/utils/quant_utils.py:34–41  ·  view source on GitHub ↗
(self, bit, symmetric, granularity, **kwargs)

Source from the content-addressed store, hash-verified

32
33class BaseQuantizer(object):
34 def __init__(self, bit, symmetric, granularity, **kwargs):
35 self.bit = bit
36 self.sym = symmetric
37 self.granularity = granularity
38 self.kwargs = kwargs
39 if self.granularity == "per_group":
40 self.group_size = self.kwargs["group_size"]
41 self.calib_algo = self.kwargs.get("calib_algo", "minmax")
42
43 def get_tensor_range(self, tensor):
44 if self.calib_algo == "minmax":

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected