Skip to content

Commit e3c68d0

Browse files
committed
chore: style
1 parent 9a5d84a commit e3c68d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nx/lib/nx/defn/graph_splitter.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ defmodule Nx.Defn.GraphSplitter do
262262

263263
# Perform topological sort
264264
sorted_ids =
265-
:digraph_utils.topsort(graph) |> Enum.map(fn {stage_id, _} -> stage_id end) |> Enum.uniq()
265+
graph
266+
|> :digraph_utils.topsort()
267+
|> Enum.map(fn {stage_id, _} -> stage_id end)
268+
|> Enum.uniq()
266269

267270
# Clean up the graph
268271
:digraph.delete(graph)

0 commit comments

Comments
 (0)