Bases: naive_probabilistic_compression
Source code in tinybig/compression/probabilistic_compression.py
| class naive_chi2_probabilistic_compression(naive_probabilistic_compression):
def __init__(self, name: str = 'naive_chi2_probabilistic_compression', df: float = 1.0, require_normalization: bool = True, *args, **kwargs):
distribution_function = torch.distributions.chi2.Chi2(df=torch.tensor([df]))
super().__init__(name=name, distribution_function=distribution_function, require_normalization=True, *args, **kwargs)
|