mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-22 21:38:10 -05:00
remove extra copy on output
This commit is contained in:
@@ -87,7 +87,7 @@ class Tensor:
|
||||
return self
|
||||
|
||||
def detach(self): return Tensor(self.lazydata, device=self.device, requires_grad=False)
|
||||
def numpy(self) -> np.ndarray: return np.array(self.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):
|
||||
|
||||
Reference in New Issue
Block a user