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

Function per_iter_shape_pipeline

dali/test/python/test_external_source_parallel.py:1130–1150  ·  view source on GitHub ↗
(
    shapes, py_num_workers=4, batch_size=4, parallel=True, bytes_per_sample_hint=None
)

Source from the content-addressed store, hash-verified

1128
1129
1130def 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
1153def test_no_parallel_no_shm():

Callers 4

test_no_parallel_no_shmFunction · 0.85
test_default_shm_sizeFunction · 0.85
test_initial_hintFunction · 0.85

Calls 2

pipelineFunction · 0.70
buildMethod · 0.45

Tested by

no test coverage detected