NumPy 2.0 support
Am curious if anyone has had a chance to look into this. No worries if not

It is worth noting that NumPy is planning to release 2.0 on June 16th: https://github.com/numpy/numpy/issues/24300#issuecomment-2125643448 Friendly nudge 😉

Do we have a sense of where this is in the queue? Sorry for the late reply, TF is working on the upgrade but it may not make the upcoming branchcut to ensure all cases around datatype promotion are handled correctly.  @kanglant is working on the upgrade and ensuring test owners verify updates.  We will give another status update by Friday on if it will make the 2.17 branchcut and when it can be expected in the nightly branch.  Thanks Michael! 🙏

No worries

Are Kanglan's changes in a PR? Or could they be added to one? Maybe members of the community could help review 🙂

FWIW did see these merged PRs:

* https://github.com/tensorflow/tensorflow/pull/63317
* https://github.com/tensorflow/tensorflow/pull/67852
* https://github.com/tensorflow/tensorflow/pull/67864
* https://github.com/tensorflow/tensorflow/pull/68271

Are there any others? No other PRs right now that i think are ready yet.  

I can say that at this point it looks like we will not make the target of next week's branchcut.  We need to verify if any of the fixes or modifications cause api level changes given TF's API compatibility guidelines.  We will target to get it into nightly as soon as we can.  We will look to use this issue to give regular updates until have made the 2.0 upgrade. 
 Would recommend that any released packages (wheels or otherwise) have an upper bound to disallow NumPy 2

Mentioning this as NumPy is planning to release on June 16th: https://github.com/numpy/numpy/issues/24300#issuecomment-2125643448

### Problem description

NumPy 2.0 is coming out soon ( https://github.com/numpy/numpy/issues/24300 ). NumPy 2.0.0rc1 packages for conda & wheels came out a month ago ( https://github.com/numpy/numpy/issues/24300#issuecomment-2030603395 )

### Feature description

NumPy has put out [a migration guide]( https://numpy.org/devdocs/numpy_2_0_migration_guide.html#numpy-2-migration-guide ). More details are in [the release notes]( https://numpy.org/devdocs/release/2.0.0-notes.html )

If TensorFlow make use of NumPy's C API (and produces wheels that use it), having a release of TensorFlow 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]( https://numpy.org/devdocs/dev/depending_on_numpy.html#numpy-2-abi-handling )

Also would recommend incorporating NumPy 2 in TensorFlow's CI

Also as NumPy is tracking ecosystem support for NumPy 2.0, it would be helpful to share TensorFlow's current support status in issue (with any plans): https://github.com/numpy/numpy/issues/26191

### Additional information

There has been some discussion about TensorFlow's NumPy 2 plans here: https://github.com/numpy/numpy/issues/26191#issuecomment-2078401952

Also the Keras team is interested in this question as they depend on TensorFlow: https://github.com/keras-team/keras/issues/19691#issuecomment-2103062310

Lastly was unable to find an existing issue by searching or asking AI. So went ahead and opened this. If there's an existing one, happy to close and follow that

cc @MichaelHudgins @jakevdp @rgommers (for vis)