Fix num_roots to be 1. (#5165)

This commit is contained in:
Jiaming Yuan
2019-12-30 02:18:45 +08:00
committed by GitHub
parent d55489af14
commit 139ccc9902
3 changed files with 3 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ struct GBTreeModelParam : public dmlc::Parameter<GBTreeModelParam> {
std::memset(this, 0, sizeof(GBTreeModelParam)); // FIXME(trivialfis): Why?
static_assert(sizeof(GBTreeModelParam) == (4 + 2 + 2 + 32) * sizeof(int32_t),
"64/32 bit compatibility issue");
deprecated_num_roots = 1;
}
// declare parameters, only declare those that need to be set.