We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0686979 commit fbaf586Copy full SHA for fbaf586
numpy_array_api_compat/__init__.py
@@ -16,6 +16,16 @@
16
to ensure they are not using functionality outside of the standard, but prefer
17
this implementation for the default when working with NumPy arrays.
18
19
+Known differences from the Array API spec:
20
+
21
+- The array methods __array_namespace__, device, to_device, and mT are not
22
+ defined. This reuses np.ndarray and we don't want to monkeypatch or wrap it.
23
24
+- NumPy value-based casting for scalars will be in effect unless explicitly
25
+ disabled with the environment variable NPY_PROMOTION_STATE=weak or
26
+ np._set_promotion_state('weak') (requires NumPy 1.24 or newer, see NEP 50
27
+ and https://github.com/numpy/numpy/issues/22341)
28
29
"""
30
31
from numpy import *
0 commit comments