From 1905f1a108988e1d74d7d73a0e8b3d55a2c99af6 Mon Sep 17 00:00:00 2001 From: Dun Liang Date: Mon, 11 Feb 2019 18:27:41 +0800 Subject: [PATCH] bug fix && test=develop --- paddle/fluid/framework/ir/graph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/ir/graph.h b/paddle/fluid/framework/ir/graph.h index b7f7c3d82e..feb3330176 100644 --- a/paddle/fluid/framework/ir/graph.h +++ b/paddle/fluid/framework/ir/graph.h @@ -142,7 +142,7 @@ class Graph { // TODO(panyx0718): control var name should be really unique. const std::string name = string::Sprintf( "%s@%llu", static_cast(ir::Node::kControlDepVarName), - node_set_.size()); + num_node_created_); auto *x = AddNode(new ir::Node(name, ir::Node::Type::kVariable)); x->SetId(num_node_created_++); return x; -- GitLab