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

Function sample_cb_source

dali/test/python/test_external_source_dali.py:453–457  ·  view source on GitHub ↗
(sample_info)

Source from the content-addressed store, hash-verified

451 return tuple(rand_elem() for _ in range(num_outputs))
452
453 def sample_cb_source(sample_info):
454 def rand_sample():
455 return np.float32(np_rng.uniform(-1, 1, shape=(10, 100, 3)))
456
457 return rand_tuple(rand_sample)
458
459 def batch_cb_source():
460 return rand_tuple(rand_batch)

Callers

nothing calls this directly

Calls 1

rand_tupleFunction · 0.85

Tested by

no test coverage detected