Merge pull request #15671 from cjld/fix_graph

fix bug CreateControlDepVar duplicate name
revert-15684-revert-15661-fix-cpu-broadcast
Xin Pan 6 years ago committed by GitHub
commit d670d8ef1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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<const char *>(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;

Loading…
Cancel
Save