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

Function _has_array_protocol

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

Source from the content-addressed store, hash-verified

1308
1309
1310def _has_array_protocol(data: DataType) -> bool:
1311 return hasattr(data, "__array__")
1312
1313
1314def _convert_unknown_data(data: DataType) -> DataType:

Callers 2

dispatch_data_backendFunction · 0.85
dispatch_meta_backendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected