MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_readers_to_gpu

Method test_readers_to_gpu

tests/data/test_init_reader.py:78–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 @SkipIfNoModule("cupy")
77 @SkipIfNoModule("kvikio")
78 def test_readers_to_gpu(self):
79 for to_gpu in [True, False]:
80 inst = NibabelReader(to_gpu=to_gpu)
81 self.assertIsInstance(inst, NibabelReader)
82
83 @SkipIfNoModule("nibabel")
84 def test_nibabel_reader_avoids_eager_c_order_copy(self):

Callers

nothing calls this directly

Calls 1

NibabelReaderClass · 0.90

Tested by

no test coverage detected