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
I suspect it's an omission in the standard. ISTM all array libraries allow axis=None with the meaning of "remove all singleton dimensions":
In [17]: t = torch.empty((1, 2, 1, 3, 4, 1))
In [18]: torch.squeeze(t).shape
Out[18]: torch.Size([2, 3, 4])
torch does not allow squeeze(t, dim=None) which is fairly typical for torch's implementations of optional arguments, so will need to be worked around in the array-api-compat layer.
It looks like
axis=None
is not in the standard forsqueeze
, yet it is accepted byarray_api_strict
.The text was updated successfully, but these errors were encountered: