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 3f92970 commit e43cd60Copy full SHA for e43cd60
python-package/xgboost/core.py
@@ -2308,7 +2308,7 @@ def inplace_predict(
2308
_array_interface(csr.indptr),
2309
_array_interface(csr.indices),
2310
_array_interface(csr.data),
2311
- ctypes.c_size_t(csr.shape[1]),
+ c_bst_ulong(csr.shape[1]),
2312
from_pystr_to_cstr(json.dumps(args)),
2313
p_handle,
2314
ctypes.byref(shape),
python-package/xgboost/data.py
@@ -103,7 +103,7 @@ def _from_scipy_csr(
103
_array_interface(data.indptr),
104
_array_interface(data.indices),
105
_array_interface(data.data),
106
- ctypes.c_size_t(data.shape[1]),
+ c_bst_ulong(data.shape[1]),
107
config,
108
ctypes.byref(handle),
109
)
0 commit comments