MCPcopy
hub / github.com/tinygrad/tinygrad / _rop

Method _rop

tinygrad/tensor.py:876–876  ·  view source on GitHub ↗
(self, op:Ops, axis:tuple[int, ...])

Source from the content-addressed store, hash-verified

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:
879 # view-only indexing (no Tensor/list indices, no setitem) is handled by MovementMixin.__getitem__

Callers

nothing calls this directly

Calls 1

_apply_uopMethod · 0.95

Tested by

no test coverage detected