Skip to content

Commit cfa546c

Browse files
authored
Merge pull request #15722 from wopeizl/1.3/fix1
test=release1.3
2 parents af4c9b5 + 849e5a6 commit cfa546c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/framework/ir/graph.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ class Graph {
141141
ir::Node *CreateControlDepVar() {
142142
// TODO(panyx0718): control var name should be really unique.
143143
const std::string name = string::Sprintf(
144-
"%s@%llu", ir::Node::kControlDepVarName, node_set_.size());
144+
"%s@%llu", static_cast<const char *>(ir::Node::kControlDepVarName),
145+
num_node_created_);
145146
auto *x = AddNode(new ir::Node(name, ir::Node::Type::kVariable));
146147
x->SetId(num_node_created_++);
147148
return x;

0 commit comments

Comments
 (0)