We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c208f9a commit 1c40fdbCopy full SHA for 1c40fdb
python-package/xgboost/_data_utils.py
@@ -588,7 +588,7 @@ def parse_cal_ver(ver: str) -> tuple[int, int]:
588
589
590
@fcache
591
-def cudf_has_mode() -> bool:
+def cudf_read_only() -> bool:
592
"""When cuDF >= 26.02, the `to_pylibcudf` method is read-only."""
593
import cudf
594
@@ -612,8 +612,8 @@ def cudf_cat_inf( # pylint: disable=too-many-locals
612
codes_ainf = cuda_array_interface_dict(codes)
613
return cats_ainf, codes_ainf, (cats, codes)
614
615
- # pylint: disable=protected-access
616
- if cudf_has_mode():
+ if cudf_read_only():
+ # pylint: disable=protected-access
617
arrow_col = cats._column.to_pylibcudf()
618
else:
619
arrow_col = cats._column.to_pylibcudf(mode="read")
0 commit comments