(self)
| 4 | |
| 5 | class TestDataset(unittest.TestCase): |
| 6 | def test_dataset_is_realized(self): |
| 7 | X_train, _, _, _ = mnist() |
| 8 | X_train[0].contiguous().realize() |
| 9 | GlobalCounters.reset() |
| 10 | X_train[0].contiguous().realize() |
| 11 | self.assertLessEqual(GlobalCounters.kernel_count, 1) # 0 if BUFFER_VIEW (zero-copy), 1 otherwise |
| 12 | |
| 13 | if __name__ == '__main__': |
| 14 | unittest.main() |
nothing calls this directly
no test coverage detected