MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TopologicalSort

Function TopologicalSort

tensorflow/core/grappler/utils/topological_sort.cc:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130Status TopologicalSort(GraphDef* graph) {
131 std::vector<int> ready_nodes;
132 TF_RETURN_IF_ERROR(ComputeTopologicalOrder(*graph, {}, &ready_nodes));
133 PermuteNodesInPlace(graph, &ready_nodes, /*invert_permutation=*/true);
134 return Status::OK();
135}
136
137} // namespace grappler
138} // namespace tensorflow

Callers 11

TEST_FFunction · 0.85
OptimizeMethod · 0.85
TEST_FFunction · 0.85
OptimizeMethod · 0.85
OptimizeMethod · 0.85
OptimizeGraphMethod · 0.85
TEST_PFunction · 0.85

Calls 2

ComputeTopologicalOrderFunction · 0.85
PermuteNodesInPlaceFunction · 0.85

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68