MCPcopy Index your code
hub / github.com/DevTechJr/turboquant_cutile / dequantize

Method dequantize

turboquant_cutile/codebook.py:74–75  ·  view source on GitHub ↗
(self, indices: torch.Tensor)

Source from the content-addressed store, hash-verified

72 return diffs.abs().argmin(dim=-1)
73
74 def dequantize(self, indices: torch.Tensor) -> torch.Tensor:
75 return self.centroids.to(indices.device)[indices.long()]
76
77 def __repr__(self) -> str:
78 return (

Callers 2

test_roundtrip_identityFunction · 0.95

Calls

no outgoing calls

Tested by 2

test_roundtrip_identityFunction · 0.76