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

Function run_and_check

dali/test/python/test_external_source_impl.py:178–190  ·  view source on GitHub ↗
(pipe, ref_iterable)

Source from the content-addressed store, hash-verified

176
177
178def run_and_check(pipe, ref_iterable):
179 iter_ref = iter(ref_iterable)
180 i = 0
181 while True:
182 try:
183 pipe_out = pipe.run()
184 data = next(iter_ref)
185 data = asnumpy(data)
186 check_output(pipe_out, data)
187 i += 1
188 except StopIteration:
189 break
190 assert i == len(ref_iterable)
191
192
193def _test_iter_setup(use_fn_api, by_name, device):

Calls 4

check_outputFunction · 0.90
nextFunction · 0.85
asnumpyFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected