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

Function test_dim_mismatch

dali/test/python/reader/test_numpy.py:432–438  ·  view source on GitHub ↗
(device)

Source from the content-addressed store, hash-verified

430
431@params(*(["cpu", "gpu"] if is_gds_supported() else ["cpu"]))
432def 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
441def check_type_mismatch(device, test_data_root, names):

Callers

nothing calls this directly

Calls 2

check_dim_mismatchFunction · 0.85
create_numpy_fileFunction · 0.70

Tested by

no test coverage detected