mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-11 23:46:02 +08:00
update test_where_removal (#15872)
don't use UOp.ufix for const_like, it will broadcast dtype soon
This commit is contained in:
@@ -853,7 +853,7 @@ class TestSymbolic(unittest.TestCase):
|
||||
|
||||
def test_where_removal(self):
|
||||
cond = Variable("a", 0, 3) < 2
|
||||
u1, u0 = cond.ufix(1), cond.ufix(0)
|
||||
u1, u0 = cond.const_like(True), cond.const_like(False)
|
||||
self.helper_test_variable(cond, 0, 1, "(a<2)")
|
||||
self.helper_test_variable(cond.where(u1, u0), 0, 1, "(a<2)")
|
||||
self.helper_test_variable(cond.where(u1, u0).where(u1, u0), 0, 1, "(a<2)")
|
||||
|
||||
Reference in New Issue
Block a user