Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pints-AI/1.5-Pints
/ find_multiple
Function
find_multiple
lit_gpt/utils_old.py:20–24 ·
view source on GitHub ↗
(n: int, k: int)
Source
from the content-addressed store, hash-verified
18
19
20
def
find_multiple(n: int, k: int) -> int:
21
assert k > 0
22
if
n % k == 0:
23
return
n
24
return
n + k - (n % k)
25
26
27
def
num_parameters(module: nn.Module, requires_grad: Optional[bool] = None) -> int:
Callers
1
__post_init__
Method · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected