(device)
| 430 | |
| 431 | @params(*(["cpu", "gpu"] if is_gds_supported() else ["cpu"])) |
| 432 | def test_dim_mismatch(device): |
| 433 | with tempfile.TemporaryDirectory(prefix=gds_data_root) as test_data_root: |
| 434 | names = ["2D.npy", "3D.npy"] |
| 435 | paths = [os.path.join(test_data_root, name) for name in names] |
| 436 | create_numpy_file(paths[0], [3, 4], np.float32, False) |
| 437 | create_numpy_file(paths[1], [2, 3, 4], np.float32, False) |
| 438 | check_dim_mismatch(device, test_data_root, names) |
| 439 | |
| 440 | |
| 441 | def check_type_mismatch(device, test_data_root, names): |
nothing calls this directly
no test coverage detected