MCPcopy
hub / github.com/tinygrad/tinygrad / _mop

Method _mop

tinygrad/tensor.py:875–875  ·  view source on GitHub ↗
(self, op:Ops, arg)

Source from the content-addressed store, hash-verified

873 # ***** movement ops *****
874
875 def _mop(self, op:Ops, arg) -> Tensor: return self._apply_uop(UOp._mop, extra_args=(op,), arg=arg)
876 def _rop(self, op:Ops, axis:tuple[int, ...]) -> Tensor: return self._apply_uop(UOp._rop, op=op, axis=axis)
877
878 def _getitem(self, indices, v: Tensor|None = None) -> Tensor:

Callers

nothing calls this directly

Calls 1

_apply_uopMethod · 0.95

Tested by

no test coverage detected