Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ _align_up
Function
_align_up
dali/python/nvidia/dali/_multiproc/shared_batch.py:32–34 ·
view source on GitHub ↗
Align x up to multiple of alignment
(x, alignment)
Source
from the content-addressed store, hash-verified
30
31
32
def
_align_up(x, alignment):
33
""
"Align x up to multiple of alignment"
""
34
return
_div_ceil(x, alignment) * alignment
35
36
37
def
import_numpy():
Callers
3
make_meta
Method · 0.85
_write_batch
Method · 0.85
resize_shm_chunk
Function · 0.85
Calls
1
_div_ceil
Function · 0.85
Tested by
no test coverage detected