(test_data_root, device)
| 475 | |
| 476 | |
| 477 | def check_numpy_reader_alias(test_data_root, device): |
| 478 | new_pipe = numpy_reader_pipe( |
| 479 | fn.readers.numpy, path=test_data_root, device=device, file_filter="test_*.npy" |
| 480 | ) |
| 481 | legacy_pipe = numpy_reader_pipe( |
| 482 | fn.numpy_reader, path=test_data_root, device=device, file_filter="test_*.npy" |
| 483 | ) |
| 484 | try: |
| 485 | compare_pipelines(new_pipe, legacy_pipe, batch_size_alias_test, 50) |
| 486 | finally: |
| 487 | del new_pipe |
| 488 | del legacy_pipe |
| 489 | |
| 490 | |
| 491 | @params(*(["cpu", "gpu"] if is_gds_supported() else ["cpu"])) |
no test coverage detected