Skip to content

Support NumPy 2.0 #8460

@jakirkham

Description

@jakirkham

Hi All 👋

NumPy is planning to release 2.0 on June 16th ( numpy/numpy#24300 (comment) ). NumPy 2.0.0 RC packages for conda & wheels came out at the beginning of April ( numpy/numpy#24300 (comment) )

Also it looks like PyTorch has added NumPy 2.0 support ( pytorch/pytorch#107302 ) as part of 2.3.0

NumPy has put out a migration guide. More details are in the release notes

If torchvision makes use of NumPy's C API (and produces wheels that use it), having a release of torchvision with wheels built against NumPy 2.0.0rc1 would be helpful to ensure NumPy 1 & 2 compatible wheels (as wheels built against NumPy 1 won't be compatible with NumPy 2). More details in this NumPy 2 ABI doc

Also as NumPy is tracking ecosystem support for NumPy 2.0, it would be helpful to share torchvision current support status in issue (with any plans): numpy/numpy#26191

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