()
| 594 | |
| 595 | |
| 596 | def __test_empty_es(): |
| 597 | max_batch_size = 16 |
| 598 | |
| 599 | @pipeline_def |
| 600 | def pipeline(): |
| 601 | return fn.external_source(source=lambda: []) |
| 602 | |
| 603 | # Providing an empty batch was legal, but it failed on MakeContiguous node. |
| 604 | # This checks proper validation in External Source which is the only way that could provide |
| 605 | # empty batch as input into DALI graph. |
| 606 | with assert_raises(RuntimeError, glob="*ExternalSource expects non-empty batches*"): |
| 607 | pipe = pipeline(batch_size=max_batch_size, num_threads=4, device_id=0) |
| 608 | pipe.run() |
| 609 | |
| 610 | |
| 611 | def to_tensor_list_gpu(data): |
nothing calls this directly
no test coverage detected