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

Function pipe

dali/test/python/decoder/test_image.py:341–345  ·  view source on GitHub ↗
(device, out_type, files)

Source from the content-addressed store, hash-verified

339def _testimpl_image_decoder_tiff_with_alpha_16bit(device, out_type, path, ext):
340 @pipeline_def(batch_size=1, device_id=0, num_threads=1)
341 def pipe(device, out_type, files):
342 encoded, _ = fn.readers.file(files=files)
343 decoded = fn.decoders.image(encoded, device=device, output_type=out_type)
344 peeked_shape = fn.peek_image_shape(encoded)
345 return decoded, peeked_shape
346
347 files = get_img_files(os.path.join(test_data_root, path), ext=ext, subdir=None)
348 pipe = pipe(device, out_type=out_type, files=files)

Calls 6

fileMethod · 0.80
stackMethod · 0.80
ConstantMethod · 0.80
gpuMethod · 0.45
shapeMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected