MCPcopy
hub / github.com/tinygrad/tinygrad / _dev_base

Function _dev_base

test/backend/test_profiler.py:11–13  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

9
10MOCKGPU = DEV.interface.startswith("MOCK")
11def _dev_base(d):
12 p = d.split(":")
13 return p[0] if len(p) < 2 or not p[1].isdigit() else f"{p[0]}:{p[1]}"
14
15@contextlib.contextmanager
16def helper_collect_profile(*devs):

Callers 3

test_profile_multidevMethod · 0.85
test_trace_metadataMethod · 0.85

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…