MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / find_multiple

Function find_multiple

lit_gpt/utils.py:41–45  ·  view source on GitHub ↗
(n: int, k: int)

Source from the content-addressed store, hash-verified

39
40
41def find_multiple(n: int, k: int) -> int:
42 assert k > 0
43 if n % k == 0:
44 return n
45 return n + k - (n % k)
46
47
48def num_parameters(module: nn.Module, requires_grad: Optional[bool] = None) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected