Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdrussell/diffusion-pipe
/ round_to_nearest_multiple
Function
round_to_nearest_multiple
utils/common.py:106–107 ·
view source on GitHub ↗
(x, multiple)
Source
from the content-addressed store, hash-verified
104
105
106
def
round_to_nearest_multiple(x, multiple):
107
return
int(round(x / multiple) * multiple)
108
109
110
def
round_down_to_multiple(x, multiple):
Callers
2
cache_latents
Method · 0.90
__call__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected