Uast start (#1650)

* work

* more tests

* more tests 2

* don't break it
This commit is contained in:
George Hotz
2023-08-23 12:00:06 -07:00
committed by GitHub
parent 484708da87
commit 1b8c40234f
3 changed files with 26 additions and 22 deletions

View File

@@ -107,7 +107,7 @@ class Tensor:
return self
def detach(self): return Tensor(self.lazydata, device=self.device, requires_grad=False)
def numpy(self) -> np.ndarray: return self.to('CPU').lazydata.toCPU()
def numpy(self) -> np.ndarray: return self.lazydata.toCPU()
# TODO: if things are realized this won't work
def to_(self, device:str):