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

Function vid_source

dali/test/python/sequences_test_utils.py:473–488  ·  view source on GitHub ↗
(batch_size, num_batches, num_frames, width, height, seq_layout)

Source from the content-addressed store, hash-verified

471
472
473def vid_source(batch_size, num_batches, num_frames, width, height, seq_layout):
474 pipe = vid_pipeline(
475 num_threads=4,
476 batch_size=batch_size,
477 num_frames=num_frames,
478 width=width,
479 height=height,
480 device_id=0,
481 seq_layout=seq_layout,
482 prefetch_queue_depth=1,
483 )
484 batches = []
485 for _ in range(num_batches):
486 (pipe_out,) = pipe.run()
487 batches.append(as_batch(pipe_out))
488 return batches
489
490
491def video_suite_helper(ops_test_cases, test_channel_first=True, expand_channels=False, rng=None):

Callers 1

get_video_input_casesFunction · 0.85

Calls 4

vid_pipelineFunction · 0.85
as_batchFunction · 0.70
runMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected