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

Function asnumpy

dali/test/python/experimental_mode/test_batch.py:25–29  ·  view source on GitHub ↗
(batch_or_tensor)

Source from the content-addressed store, hash-verified

23
24
25def asnumpy(batch_or_tensor):
26 if isinstance(batch_or_tensor, ndd.Batch):
27 return [test_tensor.asnumpy(t) for t in batch_or_tensor.tensors]
28 else:
29 return test_tensor.asnumpy(batch_or_tensor)
30
31
32@eval_modes()

Calls

no outgoing calls

Tested by

no test coverage detected