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

Function create_tmp

dali/test/python/test_backend_impl_gpu.py:313–315  ·  view source on GitHub ↗
(idx)

Source from the content-addressed store, hash-verified

311
312def test_tensor_cpu_from_numpy():
313 def create_tmp(idx):
314 a = np.full((4, 4), idx)
315 return tensors.TensorCPU(a, "")
316
317 out = [create_tmp(i) for i in range(4)]
318 for i, t in enumerate(out):

Calls

no outgoing calls

Tested by

no test coverage detected