MCPcopy Create free account
hub / github.com/NVIDIA/DALI / _div_ceil

Function _div_ceil

dali/python/nvidia/dali/_multiproc/shared_batch.py:27–29  ·  view source on GitHub ↗

Calculate ceil of a/b without decaying to float.

(a, b)

Source from the content-addressed store, hash-verified

25
26
27def _div_ceil(a, b):
28 """Calculate ceil of a/b without decaying to float."""
29 return -(-a // b)
30
31
32def _align_up(x, alignment):

Callers 1

_align_upFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected