Skip to content

Commit

Permalink
Update python-package/xgboost/spark/core.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jiaming Yuan <[email protected]>
  • Loading branch information
wbo4958 and trivialfis authored Sep 5, 2023
1 parent 5014580 commit accf7e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/spark/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ def _post_transform(self, dataset: DataFrame, pred_col: Column) -> DataFrame:
return dataset

def _gpu_transform(self) -> bool:
"""If gpu is used to do the prediction, true to gpu prediction"""
"""Whether GPU is used for prediction."""

if _is_local(_get_spark_session().sparkContext):
# if it's local model, we just use the internal "device"
Expand Down

0 comments on commit accf7e1

Please sign in to comment.