We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5d84a commit e3c68d0Copy full SHA for e3c68d0
nx/lib/nx/defn/graph_splitter.ex
@@ -262,7 +262,10 @@ defmodule Nx.Defn.GraphSplitter do
262
263
# Perform topological sort
264
sorted_ids =
265
- :digraph_utils.topsort(graph) |> Enum.map(fn {stage_id, _} -> stage_id end) |> Enum.uniq()
+ graph
266
+ |> :digraph_utils.topsort()
267
+ |> Enum.map(fn {stage_id, _} -> stage_id end)
268
+ |> Enum.uniq()
269
270
# Clean up the graph
271
:digraph.delete(graph)
0 commit comments