You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyTorch has a special device, meta, which is a dummy device with no underlying data. This is a very powerful testing tool.
However, PyTorch has not implemented special support for unknown shapes just for this device. As a result, unique etc. fail.
Proposal
Change capabilities() to capabilities(*, device=None), matching the signature of default_dtypes() and dtypes().
Activity
crusaderky commentedon May 18, 2025
xref data-apis/array-api-extra#300
rgommers commentedon May 26, 2025
+1. xref #777 with a bunch of interest and discussion on this kind of functionality.
kgryte commentedon May 29, 2025
@jakevdp Would you have any objections to adding a
devicekwarg with the default beingNonefor this API? Would be good to get JAX's input on this.