Skip to content

Commit 943950c

Browse files
committed
refine graph draw
1 parent 7a019cd commit 943950c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/fluid/inference/analysis/dfg_graphviz_draw_pass.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ std::string DFG_GraphvizDrawPass::Draw(DataFlowGraph *graph) {
4646
for (size_t i = 0; i < graph->nodes.size(); i++) {
4747
const Node &node = graph->nodes.Get(i);
4848
if (!config_.display_deleted_node && node.deleted()) continue;
49-
for (auto &in : node.inlinks) {
50-
if (!config_.display_deleted_node && in->deleted()) continue;
51-
dot.AddEdge(in->repr(), node.repr(), {});
49+
for (auto &out : node.outlinks) {
50+
if (!config_.display_deleted_node && out->deleted()) continue;
51+
dot.AddEdge(node.repr(), out->repr(), {});
5252
}
5353
}
5454
return dot.Build();

0 commit comments

Comments
 (0)