fix cifar training in RANGEIFY (#12355)

* fix cifar training in RANGEIFY

* even more wino fuse

* bugfix

* test to show issue
This commit is contained in:
George Hotz
2025-09-30 15:59:19 +08:00
committed by GitHub
parent 4ff7f20b9d
commit 7129419500
5 changed files with 43 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ class TestWinograd(unittest.TestCase):
out = Tensor.conv2d(x,w, padding=1)
out.mean().backward()
backward_schedule = Tensor.schedule(x.grad, w.grad)
self.assertEqual(len(backward_schedule), 4 if RANGEIFY else 9)
self.assertEqual(len(backward_schedule), 3 if RANGEIFY else 9)
def test_counters(self):
IC, OC, X, Y = 4,4,9,9