mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
remove useless reduce cases [run_process_replay] (#5907)
* remove useless reduce cases [run_process_replay]
* do_reduce cleanup
* more cleanups + no longer supported tests
* Revert "more cleanups + no longer supported tests"
This reverts commit e9f2f6ba70.
* no longer supported tests
* switch ReduceOps.SUM -> BinaryOps.ADD
This commit is contained in:
@@ -385,6 +385,7 @@ class TestExpander(unittest.TestCase):
|
||||
|
||||
def test_expand_different_axis_flip(self): self.test_expand_different_axis(True)
|
||||
|
||||
@unittest.skip("no longer supported")
|
||||
def test_reduce_known_axis(self):
|
||||
e1 = UOp(UOps.EXPAND, dtypes.int, tuple(UOp.const(dtypes.int, x) for x in range(4)), ((1,4),))
|
||||
sink = UOp(UOps.REDUCE, dtypes.int, (3*e1,e1), ReduceOps.SUM)
|
||||
@@ -392,6 +393,7 @@ class TestExpander(unittest.TestCase):
|
||||
assert sink.op is UOps.CONST
|
||||
self.assertEqual(sink.arg, 3*(0+1+2+3))
|
||||
|
||||
@unittest.skip("no longer supported")
|
||||
def test_reduce_const(self):
|
||||
e1 = UOp(UOps.EXPAND, dtypes.int, tuple(UOp.const(dtypes.int, x) for x in range(4)), ((1,4),))
|
||||
sink = UOp(UOps.REDUCE, dtypes.int, (UOp.const(dtypes.int, 3), e1), ReduceOps.SUM)
|
||||
|
||||
Reference in New Issue
Block a user