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

Function get_input_arg_per_sample

dali/test/python/sequences_test_utils.py:317–324  ·  view source on GitHub ↗
(input_data, param_cb, rng)

Source from the content-addressed store, hash-verified

315
316
317def get_input_arg_per_sample(input_data, param_cb, rng):
318 return [
319 [
320 param_cb(SampleDesc(rng, None, sample_idx, batch_idx, sample))
321 for sample_idx, sample in enumerate(batch)
322 ]
323 for batch_idx, batch in enumerate(input_data.data)
324 ]
325
326
327def get_input_arg_per_frame(input_data: ArgData, param_cb, rng, check_broadcasting):

Callers 1

input_param_dataFunction · 0.85

Calls 1

SampleDescClass · 0.70

Tested by

no test coverage detected