Skip to content

PyTorch test failures #138

Closed
Closed

Description

@asmeurer

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.

Activity

  1. asmeurer commented on May 24, 2024

    @asmeurer
    MemberAuthor

    These have been fixed in #140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions