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

Function run_dataset_eager_mode

dali/test/python/test_utils_tensorflow.py:248–256  ·  view source on GitHub ↗
(dali_datasets, iterations, to_stop_iter=False)

Source from the content-addressed store, hash-verified

246
247
248def 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
259def run_pipeline(pipelines, iterations, device, to_stop_iter=False):

Calls 2

expect_iter_endFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected