/
githubmirror
/
scikit-learn
Обзор
Документация
Войти
/
githubmirror
/
scikit-learn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
sklearn/externals/array_api_compat/cupy/__init__.py
24 строки
744 B
Lucas Colley
MNT: bump to array API 2025.12, array-api-compat 1.15, array-api-extra 0.10.3 (#34231)
11 июн 2026, 17:53
Не верифицирован
11 июн 2026, 17:53
2b91769
Код
Авторство
О чём код?
from typing import Final from cupy import * # noqa: F403 # from cupy import * doesn't overwrite these builtin names from cupy import abs, max, min, round # noqa: F401 # These imports may overwrite names from the import * above. from ._aliases import * # noqa: F403 from ._info import __array_namespace_info__ # noqa: F401 # See the comment in the numpy __init__.py __import__(__spec__.parent + '.linalg') __import__(__spec__.parent + '.fft') __array_api_version__: Final = '2025.12' __all__ = sorted( {name for name in globals() if not name.startswith("__")} - {"Final", "_aliases", "_info", "_typing"} | {"__array_api_version__", "__array_namespace_info__", "linalg", "fft"} ) def __dir__() -> list[str]: return __all__