MCPcopy Create free account
hub / github.com/pytorch/executorch / mark_read

Method mark_read

backends/mlx/builder/program_builder.py:349–356  ·  view source on GitHub ↗
(n: Node)

Source from the content-addressed store, hash-verified

347 return
348
349 def mark_read(n: Node):
350 flat_args, spec = pytree.tree_flatten((n.args, n.kwargs))
351 seen = set()
352 for a in flat_args:
353 if isinstance(a, Node):
354 if a not in seen:
355 self._mark_read(a)
356 seen.add(a)
357
358 if isinstance(handler, PatternHandler):
359 for n in handler.body:

Callers

nothing calls this directly

Calls 2

_mark_readMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected