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

Function check_numpy_reader_alias

dali/test/python/reader/test_numpy.py:477–488  ·  view source on GitHub ↗
(test_data_root, device)

Source from the content-addressed store, hash-verified

475
476
477def 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"]))

Callers 1

test_numpy_reader_aliasFunction · 0.85

Calls 2

compare_pipelinesFunction · 0.90
numpy_reader_pipeFunction · 0.85

Tested by

no test coverage detected