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

Function pipeline

dali/test/python/test_dltensor_operator.py:406–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

404
405 @pipeline_def(batch_size=len(input_batch), num_threads=4, device_id=0)
406 def pipeline():
407 data = fn.external_source(lambda: input_batch)
408 data = fn.dl_tensor_python_function(
409 data.gpu(), batch_processing=True, function=sliced_tensor, synchronize_stream=False
410 )
411 return data
412
413 p = pipeline()
414 (out,) = p.run()

Callers 3

_gpu_sliced_torch_caseFunction · 0.70

Calls 3

fileMethod · 0.80
gpuMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected