Skip to content

Commit 5262d52

Browse files
srkreddy1238sergei-mironov
authored andcommitted
Consider version too apache#508 (apache#514)
1 parent 30bb088 commit 5262d52

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)