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

Function ref

dali/test/python/experimental_mode/test_tensor.py:400–401  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

398)
399def test_batch_to_tensor(src_device, target_device, force_copy, dtype, layout, data_factory):
400 def ref(batch):
401 return ndd.stack(*ndd.pad(batch).tensors, axis_name="N").evaluate()
402
403 pad = data_factory == ragged # only apply padding when necessary
404

Callers 3

power_to_dbFunction · 0.85
test_ref_countFunction · 0.85
checkFunction · 0.85

Calls 2

stackMethod · 0.80
evaluateMethod · 0.45

Tested by

no test coverage detected