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

Function check_layout

dali/test/python/test_external_source_parallel_utils.py:221–229  ·  view source on GitHub ↗
(pipe, layout)

Source from the content-addressed store, hash-verified

219
220
221def check_layout(pipe, layout):
222 pipe.build()
223 capture_processes(pipe._py_pool)
224 while True:
225 try:
226 (res,) = pipe.run()
227 assert res.layout() == layout
228 except StopIteration:
229 break

Callers

nothing calls this directly

Calls 4

capture_processesFunction · 0.90
buildMethod · 0.45
runMethod · 0.45
layoutMethod · 0.45

Tested by

no test coverage detected