Skip to content

Commit

Permalink
Consider version too apache#508 (apache#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 authored and tqchen committed May 29, 2018
1 parent a9d2149 commit 90c1157
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nnvm/src/compiler/precompute_prune.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ nnvm::Graph PrecomputePrune(nnvm::Graph src) {
}
nnvm::NodePtr var = nnvm::Node::Create();
var->attrs.name = e.node->attrs.name;
if (e.version) {
var->attrs.name += "_" + std::to_string(e.version);
}
if (e.node->num_outputs() != 1) {
var->attrs.name += "_output" + std::to_string(e.index);
}
Expand Down

0 comments on commit 90c1157

Please sign in to comment.