Skip to content

Commit

Permalink
Update dmlc-core, fix default ctors of NodeEntry (apache#3017)
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy authored and Wei Chen committed May 13, 2019
1 parent 4d64ff2 commit 8cc9fa2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion nnvm/include/nnvm/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,18 @@ struct NodeEntry {
version(version)
{}

explicit NodeEntry(NodePtr node):
node(std::move(node)),
index(),
version()
{}

/**
* MXNet assumes that a node with a null ptr doesn't have a gradient attached. Don't change this
* constructor.
*/
NodeEntry():
node(),
node(nullptr),
index(),
version()
{}
Expand Down

0 comments on commit 8cc9fa2

Please sign in to comment.