mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
multireduce OptOps tests (start) (#4733)
* start * full tests * add skips * unrelated * notes
This commit is contained in:
@@ -59,7 +59,7 @@ class TestUOpGraph(unittest.TestCase):
|
||||
cast = g.add(UOps.CAST, dtypes.float.vec(2), (ld,))
|
||||
x = g.add(UOps.GEP, dtypes.float, (cast, ), arg=0)
|
||||
alu = g.add(UOps.ALU, dtypes.float, (x, ), UnaryOps.SQRT)
|
||||
out = g.add(UOps.STORE, dtypes.float, (d0, idx, alu), UnaryOps.SQRT)
|
||||
out = g.add(UOps.STORE, dtypes.float, (d0, idx, alu))
|
||||
g.add(UOps.SINK, None, (out,))
|
||||
self.assertEqual(len([x for x in g.uops if x.uop is UOps.CAST]), 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user