File tree Expand file tree Collapse file tree 2 files changed +18
-37
lines changed
Expand file tree Collapse file tree 2 files changed +18
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33# `array-api-compat` to override the import location
44
55try :
6- from ...._array_api_compat_vendor import ( # pyright: ignore[reportMissingImports]
7- array_namespace , # pyright: ignore[reportUnknownVariableType]
8- device , # pyright: ignore[reportUnknownVariableType]
9- is_cupy_namespace , # pyright: ignore[reportUnknownVariableType]
10- is_jax_namespace , # pyright: ignore[reportUnknownVariableType]
11- is_numpy_namespace , # pyright: ignore[reportUnknownVariableType]
12- is_torch_namespace , # pyright: ignore[reportUnknownVariableType]
6+ from ..._array_api_compat_vendor import ( # pyright: ignore[reportMissingImports]
7+ array_namespace ,
8+ device ,
9+ is_cupy_namespace ,
10+ is_jax_array ,
11+ is_jax_namespace ,
12+ is_numpy_namespace ,
13+ is_torch_namespace ,
14+ is_writeable_array ,
1315 )
1416except ImportError :
1517 from array_api_compat import ( # pyright: ignore[reportMissingTypeStubs]
16- array_namespace , # pyright: ignore[reportUnknownVariableType]
18+ array_namespace ,
1719 device ,
18- is_cupy_namespace , # pyright: ignore[reportUnknownVariableType]
19- is_jax_namespace , # pyright: ignore[reportUnknownVariableType]
20- is_numpy_namespace , # pyright: ignore[reportUnknownVariableType]
21- is_torch_namespace , # pyright: ignore[reportUnknownVariableType]
20+ is_cupy_namespace ,
21+ is_jax_array ,
22+ is_jax_namespace ,
23+ is_numpy_namespace ,
24+ is_torch_namespace ,
25+ is_writeable_array ,
2226 )
2327
2428__all__ = [
2529 "array_namespace" ,
2630 "device" ,
2731 "is_cupy_namespace" ,
32+ "is_jax_array" ,
2833 "is_jax_namespace" ,
2934 "is_numpy_namespace" ,
3035 "is_torch_namespace" ,
36+ "is_writeable_array" ,
3137]
You can’t perform that action at this time.
0 commit comments