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:
parent
60cfd14349
commit
b2246ae7ef
1
.gitmodules
vendored
1
.gitmodules
vendored
@ -1,6 +1,7 @@
|
||||
[submodule "dmlc-core"]
|
||||
path = dmlc-core
|
||||
url = https://github.com/dmlc/dmlc-core
|
||||
branch = main
|
||||
[submodule "cub"]
|
||||
path = cub
|
||||
url = https://github.com/NVlabs/cub
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 5df8305fe699d3b503d10c60a231ab0223142407
|
||||
Subproject commit f0ff3146705e27ac2b1e6081fa0983a8a6fda72d
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user