MCPcopy
hub / github.com/tinygrad/tinygrad / __del__

Method __del__

tinygrad/tensor.py:145–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

143
144 @suppress_finalizing
145 def __del__(self): all_tensors.pop(weakref.ref(self), None)
146
147 def _apply_uop(self, fxn:Callable[..., UOp], *x:Tensor, extra_args=(), **kwargs) -> Tensor:
148 srcs = (self,)+x

Callers

nothing calls this directly

Calls 1

refMethod · 0.45

Tested by

no test coverage detected