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

Function test_compile_empty_graph

dali/test/python/experimental_mode/test_compile.py:233–240  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231
232
233def test_compile_empty_graph():
234 reader = ndd.readers.File(file_root=images_root)
235 with assert_warns(UserWarning, glob="*no operators were captured*"):
236 for jpegs, _ in reader.next_epoch(batch_size=4, compile=True):
237 jpegs.evaluate()
238 # After empty graph, reader should be back to clean state, can be reused in default mode
239 for _ in reader.next_epoch(batch_size=4):
240 break
241
242
243@eval_modes()

Callers

nothing calls this directly

Calls 3

assert_warnsFunction · 0.90
next_epochMethod · 0.80
evaluateMethod · 0.45

Tested by

no test coverage detected