Skip to content

Conversation

aywi
Copy link

@aywi aywi commented Jun 10, 2025

Closes #1581

NumPy 2.x has been around for almost a year, and the latest release is 2.3.0. Most Python data science packages have finished migrating (PyTorch since version 2.3.0). According to the NumPy 2.0 migration guide, the following are the major changes in NumPy 2.0:

$ git clone https://github.com/pytorch/captum.git
$ ruff check ./captum/ --select NPY201
All checks passed!

Therefore, it is now safe to unblock NumPy 2.x.

https://numpy.org/devdocs/numpy_2_0_migration_guide.html
```
$ ruff check ./captum/ --select NPY201
All checks passed!
```
@aywi aywi marked this pull request as draft June 11, 2025 00:37
@aywi aywi marked this pull request as ready for review June 11, 2025 00:38
@facebook-github-bot
Copy link
Contributor

@aobo-y has imported this pull request. If you are a Meta employee, you can view this in D82467803.

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

Successfully merging this pull request may close these issues.

Add support for numpy 2.0+
3 participants