mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
remove extra copy on output
This commit is contained in:
parent
b442e75c7a
commit
201d9a2d58
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue