Closed
Description
According to:
the namespace modules should expose an alias to None
named newaxis
to make indexing code more explicit.
However it seems to be missing in array-api-compat
, at least for PyTorch:
>>> import array_api_compat.torch as xp
>>> xp.newaxis is None
Traceback (most recent call last):
Cell In[6], line 1
xp.newaxis
AttributeError: module 'array_api_compat.torch' has no attribute 'newaxis'
Note, the same snippet works with numpy:
>>> import array_api_compat.numpy as xp
>>> xp.newaxis is None
True
Metadata
Metadata
Assignees
Labels
No labels