Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdrussell/diffusion-pipe
/ round_down_to_multiple
Function
round_down_to_multiple
utils/common.py:110–111 ·
view source on GitHub ↗
(x, multiple)
Source
from the content-addressed store, hash-verified
108
109
110
def
round_down_to_multiple(x, multiple):
111
return
int((x // multiple) * multiple)
112
113
114
def
time_shift(mu: float, sigma: float, t: torch.Tensor):
Callers
1
__call__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected