MCPcopy 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
110def round_down_to_multiple(x, multiple):
111 return int((x // multiple) * multiple)
112
113
114def 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