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

Function pipe

dali/test/python/decoder/test_imgcodec.py:339–343  ·  view source on GitHub ↗
(device, out_type, files)

Source from the content-addressed store, hash-verified

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

Calls 1

fileMethod · 0.80

Tested by

no test coverage detected