Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 31, 2021
1 parent d75cd6d commit df23e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-package/xgboost/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,10 +1009,10 @@ def _infer_predict_output(
test_sample = rng.randn(1, features)
if inplace:
# clear the state to avoid gpu_id, gpu_predictor
config = booster.save_config()
booster_config = booster.save_config()
booster.set_param({"predictor": "cpu_predictor", "gpu_id": -1})
test_predt = booster.inplace_predict(test_sample, **kwargs)
booster.load_config(config)
booster.load_config(booster_config)
else:
m = DMatrix(test_sample)
test_predt = booster.predict(m, **kwargs)
Expand Down

0 comments on commit df23e8e

Please sign in to comment.