MCPcopy 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
106def round_to_nearest_multiple(x, multiple):
107 return int(round(x / multiple) * multiple)
108
109
110def round_down_to_multiple(x, multiple):

Callers 2

cache_latentsMethod · 0.90
__call__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected