8000 fix lint · pytorch/pytorch@eb54774 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb54774

Browse files
fix lint
1 parent 11ad928 commit eb54774

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

torch/_inductor/fx_passes/micro_pipeline_tp.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -855,9 +855,7 @@ def _get_node_to_ancestors(
855855
"""
856856
Compute the ancestors for all nodes in a graph.
857857
"""
858-
node_to_ancestors = defaultdict(
859-
OrderedSet[torch.fx.Node]
860-
) # type: ignore[var-annotated]
858+
node_to_ancestors = defaultdict(OrderedSet[torch.fx.Node]) # type: ignore[var-annotated]
861859
for node in graph.nodes:
862860
node_to_ancestors[node] = OrderedSet(node.all_input_nodes)
863861
for dep in node.all_input_nodes:

0 commit comments

Comments
 (0)
0