Skip to content

PyTorch test failures #138

Closed
Closed
@asmeurer

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.

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