simple failing test for extra ops in VALID [pr] (#9474)

* simple failing test for extra valids [pr]

* this has DEBUG=4
This commit is contained in:
qazal
2025-03-17 17:02:40 +08:00
committed by GitHub
parent e26caf4c3a
commit bd1f71c1e2
+7
View File
@@ -98,6 +98,13 @@ class TestSchedule(unittest.TestCase):
a.realize()
assert not a.lazydata.is_realized
@unittest.expectedFailure
def test_simplify_padded_const(self):
a = Tensor.empty(1022).cummax(axis=0)
sched = check_schedule(a, 5)
ast = sched[0].ast
self.assertLessEqual(len([u for u in ast.toposort if u.op is Ops.WHERE]), 6)
def test_basic_binop_fusion(self):
a = Tensor.empty(10)
b = Tensor.empty(10)