(
shapes, py_num_workers=4, batch_size=4, parallel=True, bytes_per_sample_hint=None
)
| 1128 | |
| 1129 | |
| 1130 | def per_iter_shape_pipeline( |
| 1131 | shapes, py_num_workers=4, batch_size=4, parallel=True, bytes_per_sample_hint=None |
| 1132 | ): |
| 1133 | @dali.pipeline_def |
| 1134 | def pipeline(): |
| 1135 | return dali.fn.external_source( |
| 1136 | PerIterShapeSource(shapes), |
| 1137 | batch=False, |
| 1138 | parallel=parallel, |
| 1139 | bytes_per_sample_hint=bytes_per_sample_hint, |
| 1140 | ) |
| 1141 | |
| 1142 | pipe = pipeline( |
| 1143 | batch_size=batch_size, |
| 1144 | py_num_workers=py_num_workers, |
| 1145 | device_id=0, |
| 1146 | num_threads=4, |
| 1147 | py_start_method="spawn", |
| 1148 | ) |
| 1149 | pipe.build() |
| 1150 | return pipe |
| 1151 | |
| 1152 | |
| 1153 | def test_no_parallel_no_shm(): |
no test coverage detected