Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inplace predict with fallback when base margin is used. #9536

Merged
merged 3 commits into from
Sep 4, 2023

Conversation

trivialfis
Copy link
Member

  • Copy meta info from proxy DMatrix.
  • Use std::call_once to emit less warnings for thread-based prediction.

- Copy meta info from proxy DMatrix.
- Use `std::call_once` to emit less warnings.
@@ -58,21 +58,6 @@ void TestInplaceFallback(Context const* ctx) {
HostDeviceVector<float>* out_predt{nullptr};
ConsoleLogger::Configure(Args{{"verbosity", "1"}});
std::string output;
// test whether the warning is raised
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is removed as we are only emitting the warning once.

@trivialfis trivialfis merged commit adea842 into dmlc:master Sep 4, 2023
22 checks passed
@trivialfis trivialfis deleted the fix-inplace-predict-fallback branch September 4, 2023 17:04
trivialfis added a commit to trivialfis/xgboost that referenced this pull request Sep 5, 2023
dmlc#9536)

- Copy meta info from proxy DMatrix.
- Use `std::call_once` to emit less warnings.
trivialfis added a commit that referenced this pull request Sep 5, 2023
#9536) (#9548)

- Copy meta info from proxy DMatrix.
- Use `std::call_once` to emit less warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 2.0 Done
Development

Successfully merging this pull request may close these issues.

2 participants