MCPcopy
hub / github.com/tinygrad/tinygrad / __ilshift__

Method __ilshift__

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

Source from the content-addressed store, hash-verified

1309 def __ior__(self, x) -> Tensor: return self.assign(self.bitwise_or(x)) # type: ignore[misc]
1310 def __ixor__(self, x) -> Tensor: return self.assign(self.bitwise_xor(x)) # type: ignore[misc]
1311 def __ilshift__(self, x) -> Tensor: return self.assign(self.lshift(x)) # type: ignore[misc]
1312 def __irshift__(self, x) -> Tensor: return self.assign(self.rshift(x)) # type: ignore[misc]
1313 def __imatmul__(self, x) -> Tensor: return self.assign(self.matmul(x)) # type: ignore[misc]
1314

Callers 1

Calls 2

assignMethod · 0.95
lshiftMethod · 0.80

Tested by 1