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

Function _transform_dlpack

python-package/xgboost/data.py:1224–1229  ·  view source on GitHub ↗
(data: DataType)

Source from the content-addressed store, hash-verified

1222
1223
1224def _transform_dlpack(data: DataType) -> bool:
1225 from cupy import from_dlpack # pylint: disable=E0401
1226
1227 assert "used_dltensor" not in str(data)
1228 data = from_dlpack(data)
1229 return data
1230
1231
1232def _from_dlpack(

Callers 5

_initMethod · 0.85
_from_dlpackFunction · 0.85
dispatch_meta_backendFunction · 0.85
_proxy_transformFunction · 0.85
dispatch_proxy_set_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected