MCPcopy
hub / github.com/tinygrad/tinygrad / tag_uop

Function tag_uop

tinygrad/callify.py:13–16  ·  view source on GitHub ↗
(ctx:AllocCtx, x:UOp)

Source from the content-addressed store, hash-verified

11 replacements: list[UOp] = field(default_factory=list)
12
13def tag_uop(ctx:AllocCtx, x:UOp):
14 if x.tag is not None: return None
15 ctx.uop_list.append(x)
16 return x.replace(tag=(len(ctx.uop_list)-1,))
17
18def disk_copy_is_buffer(ctx:AllocCtx, u:UOp):
19 # copies to disk are replaced with the disk buffer

Callers 2

disk_copy_is_bufferFunction · 0.85
callify.pyFile · 0.85

Calls 2

appendMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…