Define the new device parameter. (#9362)
This commit is contained in:
@@ -149,7 +149,7 @@ Also for inplace prediction:
|
||||
.. code-block:: python
|
||||
|
||||
# where X is a dask DataFrame or dask Array backed by cupy or cuDF.
|
||||
booster.set_param({"gpu_id": "0"})
|
||||
booster.set_param({"device": "cuda:0"})
|
||||
prediction = xgb.dask.inplace_predict(client, booster, X)
|
||||
|
||||
When input is ``da.Array`` object, output is always ``da.Array``. However, if the input
|
||||
|
||||
@@ -163,7 +163,7 @@ Will print out something similar to (not actual output as it's too long for demo
|
||||
{
|
||||
"Learner": {
|
||||
"generic_parameter": {
|
||||
"gpu_id": "0",
|
||||
"device": "cuda:0",
|
||||
"gpu_page_size": "0",
|
||||
"n_jobs": "0",
|
||||
"random_state": "0",
|
||||
|
||||
Reference in New Issue
Block a user