MCPcopy Create free account
hub / github.com/pytorch/pytorch / replace_with_graph

Method replace_with_graph

torch/_inductor/pattern_matcher.py:118–122  ·  view source on GitHub ↗
(self, replacement_graph, args)

Source from the content-addressed store, hash-verified

116 return next(p for p in self.output_nodes() if p)
117
118 def replace_with_graph(self, replacement_graph, args):
119 assert self.ctx
120 ReplacementPatternEntry.replace_with_graph(
121 self, self.ctx.graph, replacement_graph, args
122 )
123
124 def replace_by_example(self, replacement_fn, args, trace_fn=None):
125 assert self.ctx

Callers 1

replace_by_exampleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected