Rate this Page
★ ★ ★ ★ ★

torch.fx.experimental.unify_refinements.substitute_all_types#

torch.fx.experimental.unify_refinements.substitute_all_types(graph, mapping)[source]#

Apply the most general unifier to all types in a graph till reaching a fixed point. If the input and output graph are the same, we converge.