MCPcopy
hub / github.com/tinygrad/tinygrad / Range

Function Range

test/null/test_simplify_valid_idx.py:30–30  ·  view source on GitHub ↗
(n, nmax)

Source from the content-addressed store, hash-verified

28def Special(expr, nmax): return UOp(Ops.SPECIAL, dtypes.weakint, (UOp.const(dtypes.weakint, nmax),), expr)
29def Variable(expr, nmin, nmax): return UOp.variable(expr, nmin, nmax)
30def Range(n, nmax): return UOp.range(nmax, n)
31
32class TestHelpers(unittest.TestCase):
33 def test_is_increasing(self):

Calls 1

rangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…