mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-10 07:28:15 -05:00
rangeify permuted assign (#12299)
* enable RANGEIFY=1 test_assign * work * rangeify=0 asserts this ast * remove that * beta test, it's correct though * skip multi * matches torch/np output * memcopy without memcopy * can remove this * rangeify isn't silently wrong anymore * diff cleanup * use UOp toposort instead of global tags * actual assert TestRangeifyAssign * step * work * this isn't optimizing away now * some todos * test fusion schedule * typo * dedup idxs * cleaner * pre * work * diff
This commit is contained in:
@@ -15,6 +15,8 @@ class TestRangeifyAssign(unittest.TestCase):
|
||||
print(lst)
|
||||
print(lst2)
|
||||
print(lst3)
|
||||
self.assertListEqual(lst, lst3)
|
||||
self.assertListEqual(lst2, B.permute(1, 0).tolist())
|
||||
|
||||
N = 256
|
||||
|
||||
|
||||
Reference in New Issue
Block a user