@@ -141,11 +141,29 @@ specification:
141
141
50] ( https://numpy.org/neps/nep-0050-scalar-promotion.html ) and
142
142
https://github.com/numpy/numpy/issues/22341 )
143
143
144
+ - ` asarray() ` does not support ` copy=False ` .
145
+
144
146
- Functions which are not wrapped may not have the same type annotations
145
147
as the spec.
146
148
147
149
- Functions which are not wrapped may not use positional-only arguments.
148
150
151
+ The minimum supported NumPy version is 1.21. However, this older version of
152
+ NumPy has a few issues:
153
+
154
+ - ` unique_* ` will not compare nans as unequal.
155
+ - ` finfo() ` has no ` smallest_normal ` .
156
+ - No ` from_dlpack ` or ` __dlpack__ ` .
157
+ - ` argmax() ` and ` argmin() ` do not have ` keepdims ` .
158
+ - ` qr() ` doesn't support matrix stacks.
159
+ - ` asarray() ` doesn't support ` copy=True ` (as noted above, ` copy=False ` is not
160
+ supported even in the latest NumPy).
161
+ - Type promotion behavior will be value based for 0-D arrays (and there is no
162
+ ` NPY_PROMOTION_STATE=weak ` to disable this).
163
+
164
+ If any of these are an issue, it is recommended to bump your minimum NumPy
165
+ version.
166
+
149
167
### PyTorch
150
168
151
169
- Like NumPy/CuPy, we do not wrap the ` torch.Tensor ` object. It is missing the
@@ -190,6 +208,8 @@ specification:
190
208
- As with NumPy, type annotations and positional-only arguments may not
191
209
exactly match the spec for functions that are not wrapped at all.
192
210
211
+ The minimum supported PyTorch version is 1.13.
212
+
193
213
## Vendoring
194
214
195
215
This library supports vendoring as an installation method. To vendor the
0 commit comments