Download lib/python3.12/site-packages/cupy/exceptions/__init__.py from ZhengyangZhang/attn-env: direct link, hf CLI and curl.
- Browser
- Download file 736 Bytes
-
https://huggingface.co/ZhengyangZhang/attn-env/resolve/main/lib/python3.12/site-packages/cupy/exceptions/__init__.py
- Command line
-
hf download hf://ZhengyangZhang/attn-env/lib/python3.12/site-packages/cupy/exceptions/__init__.py
-
curl -L -o __init__.py https://huggingface.co/ZhengyangZhang/attn-env/resolve/main/lib/python3.12/site-packages/cupy/exceptions/__init__.py
736 Bytes
| # mypy: ignore-errors | |
| from __future__ import annotations | |
| import numpy | |
| if numpy.__version__ < '2': | |
| from numpy import AxisError # NOQA | |
| from numpy import ComplexWarning # NOQA | |
| from numpy import ModuleDeprecationWarning # NOQA | |
| from numpy import TooHardError # NOQA | |
| from numpy import VisibleDeprecationWarning # NOQA | |
| from numpy import RankWarning # NOQA | |
| else: | |
| from numpy.exceptions import AxisError # NOQA | |
| from numpy.exceptions import ComplexWarning # NOQA | |
| from numpy.exceptions import ModuleDeprecationWarning # NOQA | |
| from numpy.exceptions import TooHardError # NOQA | |
| from numpy.exceptions import VisibleDeprecationWarning # NOQA | |
| from numpy.exceptions import RankWarning # NOQA | |