diff --git a/3rdparty/dmlc-core b/3rdparty/dmlc-core index 2b5b1ba9c110..3ffea8694adf 160000 --- a/3rdparty/dmlc-core +++ b/3rdparty/dmlc-core @@ -1 +1 @@ -Subproject commit 2b5b1ba9c1103f438d164aca32da7cffd8cd48e8 +Subproject commit 3ffea8694adf9c0363f9abbf162dc0e4a45b22c5 diff --git a/nnvm/include/nnvm/node.h b/nnvm/include/nnvm/node.h index 4f0cb523729b..deac193c5fe9 100644 --- a/nnvm/include/nnvm/node.h +++ b/nnvm/include/nnvm/node.h @@ -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() {}