(batch_size, num_batches, num_frames, width, height, seq_layout)
| 471 | |
| 472 | |
| 473 | def 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 | |
| 491 | def video_suite_helper(ops_test_cases, test_channel_first=True, expand_channels=False, rng=None): |
no test coverage detected