(data: DataType, field: str, handle: ctypes.c_void_p)
| 1574 | |
| 1575 | |
| 1576 | def _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 | |
| 1582 | def dispatch_meta_backend( |
no test coverage detected