Skip to content

Commit 42f971d

Browse files
srkreddy1238tqchen
authored andcommitted
Consider version too #508 (#514)
1 parent 9f0def1 commit 42f971d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nnvm/src/compiler/precompute_prune.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ nnvm::Graph PrecomputePrune(nnvm::Graph src) {
3434
}
3535
nnvm::NodePtr var = nnvm::Node::Create();
3636
var->attrs.name = e.node->attrs.name;
37+
if (e.version) {
38+
var->attrs.name += "_" + std::to_string(e.version);
39+
}
3740
if (e.node->num_outputs() != 1) {
3841
var->attrs.name += "_output" + std::to_string(e.index);
3942
}

0 commit comments

Comments
 (0)