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

Function rand_tuple

dali/test/python/test_external_source_dali.py:450–451  ·  view source on GitHub ↗
(rand_elem)

Source from the content-addressed store, hash-verified

448 return np.float32(np_rng.uniform(-1, 1, shape=(batch_size, 10, 100, 3)))
449
450 def rand_tuple(rand_elem):
451 return tuple(rand_elem() for _ in range(num_outputs))
452
453 def sample_cb_source(sample_info):
454 def rand_sample():

Callers 4

sample_cb_sourceFunction · 0.85
batch_cb_sourceFunction · 0.85
gen_fun_sourceFunction · 0.85
__next__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected