Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
185
def
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
190
def
dummy_source(batches):
Callers
2
_test_seq_input
Function · 0.70
vid_source
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected