(self)
| 59 | rep = loader.__repr__() |
| 60 | |
| 61 | def test_2d_channels_first(self): |
| 62 | loader = nt.Loader(self.dataset_2d, images_per_batch=4, |
| 63 | channels_first=True) |
| 64 | |
| 65 | x_batch, y_batch = next(iter(loader)) |
| 66 | self.assertTrue(x_batch.shape == (4, 1, 256, 256)) |
| 67 | |
| 68 | loader2 = loader.to_keras() |
| 69 | x_batch, y_batch = next(iter(loader2)) |
| 70 | self.assertTrue(x_batch.shape == (4, 1, 256, 256)) |
| 71 | |
| 72 | gen = record_generator(loader) |
| 73 | xb,yb = next(iter(gen)) |
| 74 | |
| 75 | def test_copy(self): |
| 76 | import ants |
nothing calls this directly
no test coverage detected