MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / dequantize

Method dequantize

optimizers/optimizer_utils.py:234–235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 self.orig_dtype = data.dtype
233
234 def dequantize(self) -> Tensor:
235 return self.quantized.to(dtype=torch.float32) * self.scale
236
237 def to(self, *args, **kwargs):
238 # Handle the dtype argument whether it's positional or keyword

Callers 3

toMethod · 0.95
__str__Method · 0.95
stepMethod · 0.45

Calls 1

toMethod · 0.45

Tested by

no test coverage detected