MCPcopy 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
32def _align_up(x, alignment):
33 """Align x up to multiple of alignment"""
34 return _div_ceil(x, alignment) * alignment
35
36
37def import_numpy():

Callers 3

make_metaMethod · 0.85
_write_batchMethod · 0.85
resize_shm_chunkFunction · 0.85

Calls 1

_div_ceilFunction · 0.85

Tested by

no test coverage detected