Skip to content

Commit

Permalink
Enable copy over behavior of attributes of automatic created vars (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen committed May 29, 2018
1 parent b44568c commit 200973a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nnvm/src/core/symbolic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ void Symbol::Compose(const array_view<const Symbol*>& args,
} else {
n->inputs[i] = NodeEntry{
CreateVariableNode(DefaultVarName(name, arg_names[i])), 0, 0};
// copy attribute of parent over automatically created variables
n->inputs[i].node->attrs.dict = n->attrs.dict;
}
}

Expand Down

0 comments on commit 200973a

Please sign in to comment.