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

Function permuted_extents

dali/test/python/test_dltensor_operator.py:439–442  ·  view source on GitHub ↗
(ndim)

Source from the content-addressed store, hash-verified

437 return tuple(copy)
438
439 def permuted_extents(ndim):
440 extents = list(range(ndim))
441 rng.shuffle(extents)
442 return tuple(extents)
443
444 # the original extents are purposely all prime numbers
445 # to test handling of unaligned tensors

Callers 1

get_permute_extents_caseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected