Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RenderKit/oidn
/ round_nearest
Function
round_nearest
training/util.py:28–29 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
26
return
(a + b - 1) // b * b
27
28
def
round_nearest(a, b):
29
return
(a + b//2) // b * b
30
31
# Prints an error message and exits
32
def
error(*args):
Callers
1
format_time
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected