Skip to content

Commit

Permalink
[backport] Type fix for WebAssembly. (#8369) (#8394)
Browse files Browse the repository at this point in the history
Co-authored-by: Yizhi Liu <liuyizhi@apache.org>
  • Loading branch information
trivialfis and yzhliu committed Oct 26, 2022
1 parent 3f92970 commit e43cd60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python-package/xgboost/core.py
Expand Up @@ -2308,7 +2308,7 @@ def inplace_predict(
_array_interface(csr.indptr),
_array_interface(csr.indices),
_array_interface(csr.data),
ctypes.c_size_t(csr.shape[1]),
c_bst_ulong(csr.shape[1]),
from_pystr_to_cstr(json.dumps(args)),
p_handle,
ctypes.byref(shape),
Expand Down
2 changes: 1 addition & 1 deletion python-package/xgboost/data.py
Expand Up @@ -103,7 +103,7 @@ def _from_scipy_csr(
_array_interface(data.indptr),
_array_interface(data.indices),
_array_interface(data.data),
ctypes.c_size_t(data.shape[1]),
c_bst_ulong(data.shape[1]),
config,
ctypes.byref(handle),
)
Expand Down

0 comments on commit e43cd60

Please sign in to comment.