Update dmlc-core submodule and conform to new API (#6431)

* Update dmlc-core submodule and conform to new API

* Remove unsupported parameter from method signature

* Update dmlc-core submodule and conform to new API

* Update dmlc-core

Co-authored-by: Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
TP Boudreau
2021-01-06 00:12:22 +00:00
committed by GitHub
parent 60cfd14349
commit b2246ae7ef
3 changed files with 4 additions and 6 deletions

View File

@@ -87,14 +87,11 @@ struct XGBoostParameter : public dmlc::Parameter<Type> {
public:
template <typename Container>
Args UpdateAllowUnknown(Container const& kwargs, bool* out_changed = nullptr) {
Args UpdateAllowUnknown(Container const& kwargs) {
if (initialised_) {
return dmlc::Parameter<Type>::UpdateAllowUnknown(kwargs, out_changed);
return dmlc::Parameter<Type>::UpdateAllowUnknown(kwargs);
} else {
auto unknown = dmlc::Parameter<Type>::InitAllowUnknown(kwargs);
if (out_changed) {
*out_changed = true;
}
initialised_ = true;
return unknown;
}