MCPcopy
hub / github.com/tinygrad/tinygrad / __imul__

Method __imul__

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

Source from the content-addressed store, hash-verified

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]
1306 def __ifloordiv__(self, x) -> Tensor: return self.assign(self.__floordiv__(x)) # type: ignore[misc]
1307 def __ipow__(self, x) -> Tensor: return self.assign(self.pow(x)) # type: ignore[misc]

Callers

nothing calls this directly

Calls 2

assignMethod · 0.95
mulMethod · 0.80

Tested by

no test coverage detected