(self)
| 57 | Tensor.manual_seed(0) |
| 58 | |
| 59 | def test_schedule_gc(self): |
| 60 | init = bufs_allocated() |
| 61 | x = Tensor.ones(256).contiguous().realize() |
| 62 | y = Tensor.ones(5, 5).contiguous() |
| 63 | y.schedule_linear() |
| 64 | del x |
| 65 | del y |
| 66 | self.assertEqual(bufs_allocated()-init, 0) |
| 67 | |
| 68 | def test_schedule_gc_with_inputs(self): |
| 69 | init = bufs_allocated() |
nothing calls this directly
no test coverage detected