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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user