mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 15:38:29 -05:00
fix passing acc_dtype="" to Tensor.prod should fail (#7750)
similar to sum
This commit is contained in:
@@ -1032,6 +1032,9 @@ class TestOps(unittest.TestCase):
|
||||
helper_test_op([()], lambda x: x.prod(0))
|
||||
helper_test_op([()], lambda x: x.prod(-1))
|
||||
|
||||
def test_prod_acc_dtype(self):
|
||||
with self.assertRaises(AttributeError): Tensor([1.0, 2.0]).prod(acc_dtype="")
|
||||
|
||||
def test_min(self):
|
||||
helper_test_op([(3,3)], lambda x: x.min())
|
||||
helper_test_op([(45,3)], lambda x: x.min())
|
||||
|
||||
Reference in New Issue
Block a user