Skip to content

Commit

Permalink
Consider version too #508 (#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 9f0def1 commit 42f971d
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 42f971d

Please sign in to comment.