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

Function _test_str

dali/test/python/test_backend_impl.py:452–454  ·  view source on GitHub ↗
(tl, expected_params, expected_func)

Source from the content-addressed store, hash-verified

450
451
452def _test_str(tl, expected_params, expected_func):
453 assert str(tl) == expected_func("cpu", *expected_params)
454 assert str(tl._as_gpu()) == expected_func("gpu", *expected_params)
455
456
457def test_tensorlist_str_empty():

Callers 4

test_tensor_str_emptyFunction · 0.85
test_tensor_str_sampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected