MCPcopy
hub / github.com/tinygrad/tinygrad / smin

Function smin

tinygrad/uop/ops.py:48–48  ·  view source on GitHub ↗
(*lst)

Source from the content-addressed store, hash-verified

46 return ssimplify(functools.reduce(uop_fxn, uops + ([python_fxn(nums)] if nums else [])))
47def smax(*lst) -> sint: return _suop(argfix(*lst), UOp.maximum, max)
48def smin(*lst) -> sint: return _suop(argfix(*lst), UOp.minimum, min)
49def srender(x:sint) -> str: return x.render() if isinstance(x, UOp) else str(x)
50def _align_left(*shapes:tuple[sint, ...]) -> tuple[tuple[sint, ...], ...]:
51 max_dim = max(len(s) for s in shapes)

Callers 2

from_uopsMethod · 0.90
_pad_constantMethod · 0.90

Calls 2

argfixFunction · 0.90
_suopFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…