File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -349,24 +349,10 @@ request a specific API version:
349
349
xp = x.__array_namespace__(api_version='2020.10')
350
350
```
351
351
352
- ``` {note}
353
-
354
- This is inspired by [NEP 37](https://numpy.org/neps/nep-0037-array-module.html#how-to-use-get-array-module),
355
- however it avoids adding a dependency on NumPy or having to provide a
356
- separate package just to do `get_array_module(x)`
357
-
358
- NEP 37 is still in flux (it was just accepted by JAX and TensorFlow on an
359
- experimental basis), and it's possible that that should be accepted instead.
360
-
361
- TBD: a decision must be made on this topic before a first version of the
362
- standard can become final. We prefer to delay this decision, to see how
363
- NEP 37 adoption will work out.
364
- ```
365
-
366
352
The ` xp ` namespace must contain all functionality specified in
367
- {ref}` api-specification ` . It may contain other functionality, however it is
368
- recommended not to add other functions or objects, because that may make it
369
- harder for users to write code that will work with multiple array libraries .
353
+ {ref}` api-specification ` . The namespace may contain other functionality; however,
354
+ including additional functionality is not recommended as doing so may hinder
355
+ portability and inter-operation of array libraries within user code .
370
356
371
357
372
358
### Discoverability
You can’t perform that action at this time.
0 commit comments