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

Function as_batch

dali/test/python/sequences_test_utils.py:185–187  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

183
184
185def as_batch(tensor):
186 tensor = tensor.as_cpu()
187 return [np.array(sample, dtype=types.to_numpy_type(sample.dtype)) for sample in tensor]
188
189
190def dummy_source(batches):

Callers 2

_test_seq_inputFunction · 0.70
vid_sourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected