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

Function input_param_data

dali/test/python/sequences_test_utils.py:349–355  ·  view source on GitHub ↗
(arg_cb)

Source from the content-addressed store, hash-verified

347
348def compute_input_params_data(input_data: ArgData, rng, input_params: List[ArgCb]):
349 def input_param_data(arg_cb):
350 assert arg_cb.desc.expandable_prefix in ["", "F"]
351 if arg_cb.desc.expandable_prefix == "F":
352 return get_input_arg_per_frame(
353 input_data, arg_cb.cb, rng, not arg_cb.desc.is_positional_arg
354 )
355 return get_input_arg_per_sample(input_data, arg_cb.cb, rng)
356
357 return [ArgData(desc=arg_cb.desc, data=input_param_data(arg_cb)) for arg_cb in input_params]
358

Callers 1

Calls 2

get_input_arg_per_frameFunction · 0.85
get_input_arg_per_sampleFunction · 0.85

Tested by

no test coverage detected