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

Function run_decode

dali/test/python/decoder/test_image.py:74–88  ·  view source on GitHub ↗
(_img_type, data_path, batch, device, threads, memory_stats=False)

Source from the content-addressed store, hash-verified

72
73
74def run_decode(_img_type, data_path, batch, device, threads, memory_stats=False):
75 pipe = decoder_pipe(
76 data_path=data_path,
77 batch_size=batch,
78 num_threads=threads,
79 device_id=0,
80 device=device,
81 memory_stats=memory_stats,
82 prefetch_queue_depth=1,
83 )
84 iters = math.ceil(pipe.epoch_size("Reader") / batch)
85 for _ in range(iters):
86 outs = pipe.run()
87 del outs
88 del pipe
89
90
91def test_image_decoder():

Callers

nothing calls this directly

Calls 4

ceilMethod · 0.80
decoder_pipeFunction · 0.70
epoch_sizeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected