()
| 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() |
no test coverage detected