mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
update test_where_removal (#15872)
don't use UOp.ufix for const_like, it will broadcast dtype soon
This commit is contained in:
parent
09ff3e1883
commit
3c8daa9a75
1 changed files with 1 additions and 1 deletions
|
|
@ -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)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue