mirror of https://github.com/commaai/tinygrad.git
remove extra copy on output
This commit is contained in:
parent
b442e75c7a
commit
201d9a2d58
|
@ -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…
Reference in New Issue