Skip to content

Commit 286cc41

Browse files
committed
Fix formatting issue in UnstableToStableBackend class by removing unnecessary blank lines in the vector norm conversion method.
1 parent fccd908 commit 286cc41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graph_net/torch/backend/unstable_to_stable_backend.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def _impl_unstable_to_stable_linalg_vector_norm(self, gm):
130130
"""
131131
Convert torch._C._linalg.linalg_vector_norm to torch.linalg.vector_norm
132132
"""
133+
133134
def replace_in_graph(graph_mod):
134135
# Update graph nodes: replace torch._C._linalg.linalg_vector_norm with torch.linalg.vector_norm
135136
for node in graph_mod.graph.nodes:
@@ -141,7 +142,7 @@ def replace_in_graph(graph_mod):
141142
and node.target.__name__ == "linalg_vector_norm"
142143
):
143144
node.target = torch.linalg.vector_norm
144-
145+
145146
# Validate and recompile the graph
146147
graph_mod.graph.lint()
147148
graph_mod.recompile()

0 commit comments

Comments
 (0)