Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
to
Method · 0.95
__str__
Method · 0.95
step
Method · 0.45
Calls
1
to
Method · 0.45
Tested by
no test coverage detected