MCPcopy Create free account
hub / github.com/dmlc/xgboost / _meta_from_cupy_array

Function _meta_from_cupy_array

python-package/xgboost/data.py:1576–1579  ·  view source on GitHub ↗
(data: DataType, field: str, handle: ctypes.c_void_p)

Source from the content-addressed store, hash-verified

1574
1575
1576def _meta_from_cupy_array(data: DataType, field: str, handle: ctypes.c_void_p) -> None:
1577 data = _transform_cupy_array(data)
1578 inf = cuda_array_interface(data)
1579 _check_call(_LIB.XGDMatrixSetInfoFromInterface(handle, c_str(field), inf))
1580
1581
1582def dispatch_meta_backend(

Callers 1

dispatch_meta_backendFunction · 0.85

Calls 5

_transform_cupy_arrayFunction · 0.85
cuda_array_interfaceFunction · 0.85
_check_callFunction · 0.85
c_strFunction · 0.85

Tested by

no test coverage detected