jrmccluskey opened a new pull request, #40553:
URL: https://github.com/apache/beam/pull/40553
NumPy 2.4.6+ can raise a ValueError instead of a TypeError when handed a
dtype it cannot convert, leading to breakages when exercising this code (caught
with local runs against the pytorch_type_compatibility_test.py suite.) Catching
both and raising as the expected TypeError maintains the expected behavior
within Beam.
<!--
Thank you for your contribution! Follow this checklist to help us
incorporate your contribution quickly and easily:
- [ ] If this contribution is large, please file an Apache [Individual
Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
- [ ] Replace these instructions with a description of your change and why
you have made it.
- [ ] Mention the appropriate issue in your description (for example:
`addresses #123` or `fixes #456`).
- [ ] Update `CHANGES.md` with noteworthy changes.
See [CONTRIBUTING.md]() for more details.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]