(dali_datasets, iterations, to_stop_iter=False)
| 246 | |
| 247 | |
| 248 | def run_dataset_eager_mode(dali_datasets, iterations, to_stop_iter=False): |
| 249 | if not isinstance(dali_datasets, list): |
| 250 | dali_datasets = [dali_datasets] |
| 251 | |
| 252 | results = [] |
| 253 | with expect_iter_end(not to_stop_iter, StopIteration): |
| 254 | for i, batch in zip(range(iterations), zip(*dali_datasets)): |
| 255 | results.append(batch) |
| 256 | return results |
| 257 | |
| 258 | |
| 259 | def run_pipeline(pipelines, iterations, device, to_stop_iter=False): |
no test coverage detected