Skip to content

PyTorch test failures #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
asmeurer opened this issue May 17, 2024 · 1 comment
Closed

PyTorch test failures #138

asmeurer opened this issue May 17, 2024 · 1 comment

Comments

@asmeurer
Copy link
Member

A bunch of array-api-tests are failing with the latest version of PyTorch with RuntimeError: Promotion for uint16, uint32, uint64 types is not supported, attempted to promote Int and UInt16.

It seems PyTorch added support for uint16, but the support is limited:

>>> torch.equal(torch.tensor(0, dtype=torch.int32), torch.tensor(0, dtype=torch.uint16))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Promotion for uint16, uint32, uint64 types is not supported, attempted to promote Int and UInt16

See https://pytorch.org/docs/stable/tensors.html#id12

It would be useful if we could skip this dtype entirely in the test suite somehow. Otherwise we will basically need to xfail every two-argument function test.

@asmeurer
Copy link
Member Author

These have been fixed in #140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant