From bd1f71c1e2c01d32e4c409da9891b54596c128dc Mon Sep 17 00:00:00 2001 From: qazal <77887910+Qazalin@users.noreply.github.com> Date: Mon, 17 Mar 2025 17:02:40 +0800 Subject: [PATCH] simple failing test for extra ops in VALID [pr] (#9474) * simple failing test for extra valids [pr] * this has DEBUG=4 --- test/test_schedule.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test_schedule.py b/test/test_schedule.py index 3ac485dab5..605ceced3e 100644 --- a/test/test_schedule.py +++ b/test/test_schedule.py @@ -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)