mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
restrict assignment to base (#3809)
* restrict assignment to base * add some restrictions there * more restrictions
This commit is contained in:
@@ -178,7 +178,7 @@ class TestAssign(unittest.TestCase):
|
||||
b.realize()
|
||||
ba1 = a.lazydata.base.realized
|
||||
bb1 = b.lazydata.base.realized
|
||||
with self.assertRaises(RuntimeError):
|
||||
with self.assertRaises((RuntimeError, AssertionError)):
|
||||
a = a.permute(1,0)
|
||||
a += b
|
||||
a.realize()
|
||||
|
||||
Reference in New Issue
Block a user