Update dmlc-core, fix default ctors of NodeEntry (#3017)
This commit is contained in:
Родитель
fcc5b42208
Коммит
d5f7224dda
|
@ -1 +1 @@
|
||||||
Subproject commit 2b5b1ba9c1103f438d164aca32da7cffd8cd48e8
|
Subproject commit 3ffea8694adf9c0363f9abbf162dc0e4a45b22c5
|
|
@ -56,8 +56,18 @@ struct NodeEntry {
|
||||||
version(version)
|
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():
|
NodeEntry():
|
||||||
node(),
|
node(nullptr),
|
||||||
index(),
|
index(),
|
||||||
version()
|
version()
|
||||||
{}
|
{}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче