fix rangeify elu fusion for openpilot (#12341)

* fix rangeify elu fusion for openpilot

* flip the metadata

* copy over permuted contiguous support

* this is correct

* update that
This commit is contained in:
George Hotz
2025-09-30 11:41:52 +08:00
committed by GitHub
parent d95d018bb5
commit f522e83a02
3 changed files with 32 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), 6 if RANGEIFY else 9)
self.assertEqual(len(backward_schedule), 4 if RANGEIFY else 9)
def test_counters(self):
IC, OC, X, Y = 4,4,9,9