Skip to content

Conversation

@Satge96
Copy link
Contributor

@Satge96 Satge96 commented May 6, 2025

This should also work for older numpy versions. And is a copy of #2378 and solves #2373

This should also work for older numpy versions.

Signed-off-by: Satge96 <35660525+Satge96@users.noreply.github.com>
@Satge96 Satge96 changed the title Replace np.cast (deprecated in numpy > 2) with np.asarray. Replace np.cast (deprecated in numpy >= 2) with np.asarray. May 6, 2025
@xadupre xadupre enabled auto-merge June 10, 2025 14:39
@Satge96
Copy link
Contributor Author

Satge96 commented Jun 10, 2025

Thanks for approving the change. What can I do to make the enforce-style successful?

@Stonesjtu
Copy link

@xadupre can you take a look at this PR?

@xadupre xadupre merged commit 10b2d31 into onnx:main Jul 1, 2025
33 of 34 checks passed
@Gostas Gostas mentioned this pull request Nov 8, 2025
@WangHHY19931001
Copy link

may be you should check numpy version and use diff way?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants