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

Function permuted

dali/test/python/test_dltensor_operator.py:434–437  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

432 rng = random.Random(44)
433
434 def permuted(it):
435 copy = list(it)
436 rng.shuffle(copy)
437 return tuple(copy)
438
439 def permuted_extents(ndim):
440 extents = list(range(ndim))

Callers 1

get_permute_extents_caseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected