mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 07:28:15 -05:00
clean up reshape size check [pr] (#8067)
removed a resolve, and remove special case for 0 size assert since it's covered by generic size check
This commit is contained in:
@@ -573,7 +573,7 @@ class TestZeroShapeTensor(unittest.TestCase):
|
||||
a = t.reshape(0)
|
||||
assert a.shape == (0,)
|
||||
np.testing.assert_equal(a.numpy(), np.zeros((0,)))
|
||||
with self.assertRaises(AssertionError):
|
||||
with self.assertRaises(ValueError):
|
||||
# cannot reshape from size 0 to size 1
|
||||
a = t.reshape(())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user