Revert "flip Ops.COPY order [pr] (#10120)" (#10121)

This reverts commit 984f09ac74.
This commit is contained in:
George Hotz
2025-04-30 17:25:21 -04:00
committed by GitHub
parent 984f09ac74
commit dd0070daab
5 changed files with 10 additions and 11 deletions

View File

@@ -113,7 +113,7 @@ class TestTensorUopRepresentation(unittest.TestCase):
a = Tensor([1.,2,3]).realize()
c = a.to("TEST") # NOTE: this isn't checked
print(c.lazydata)
is_pattern(c, UPat(Ops.COPY, src=(realized_pattern, UPat(Ops.DEVICE))))
is_pattern(c, UPat(Ops.COPY, src=(UPat(Ops.DEVICE), realized_pattern,)))
def test_empty_buf(self):
a = Tensor.empty(3, 3)