MCPcopy
hub / github.com/tinygrad/tinygrad / __iadd__

Method __iadd__

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

Source from the content-addressed store, hash-verified

1300
1301 # unlike Tensors, UOps are immutable, so these don't go in mixin
1302 def __iadd__(self, x) -> Tensor: return self.assign(self.add(x)) # type: ignore[misc]
1303 def __isub__(self, x) -> Tensor: return self.assign(self.sub(x)) # type: ignore[misc]
1304 def __imul__(self, x) -> Tensor: return self.assign(self.mul(x)) # type: ignore[misc]
1305 def __itruediv__(self, x) -> Tensor: return self.assign(self.div(x)) # type: ignore[misc]

Callers

nothing calls this directly

Calls 2

assignMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected