Skip to content

Conversation

xadupre
Copy link
Contributor

@xadupre xadupre commented Jun 21, 2024

Description

onnx compiled with numpy 1.x does not work with numpy 2.0. onnx compiled with numpy 2.0 works numpy 1.x.

Fixes #6136 Fixes #6197

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@xadupre xadupre requested review from a team as code owners June 21, 2024 09:51
xadupre added 3 commits June 21, 2024 11:53
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
xadupre added 2 commits June 21, 2024 13:16
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@justinchuby justinchuby added the run release CIs Use this label to trigger release tests in CI label Jun 21, 2024
Copy link
Member

@justinchuby justinchuby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Do we specify numpy>2.0 explicitly somewhere in the release pipeline too? If not should we do it?

xadupre added 3 commits June 21, 2024 15:12
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@justinchuby
Copy link
Member

Fixes #6136 ?

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@xadupre
Copy link
Contributor Author

xadupre commented Jun 21, 2024

Fixes #6136 ?

It should.

xadupre added 2 commits June 21, 2024 15:45
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@xadupre xadupre self-assigned this Jun 21, 2024
xadupre added 3 commits June 21, 2024 19:23
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Copy link

codecov bot commented Jun 21, 2024

Codecov Report

Attention: Patch coverage is 36.84211% with 36 lines in your changes missing coverage. Please review.

Project coverage is 57.07%. Comparing base (83194ed) to head (abb8db9).
Report is 59 commits behind head on main.

Files Patch % Lines
onnx/backend/test/case/node/deformconv.py 0.00% 8 Missing ⚠️
onnx/backend/test/loader/__init__.py 28.57% 4 Missing and 1 partial ⚠️
onnx/backend/test/case/node/stft.py 0.00% 3 Missing ⚠️
onnx/backend/test/case/node/unique.py 0.00% 3 Missing ⚠️
onnx/backend/test/case/node/blackmanwindow.py 0.00% 2 Missing ⚠️
onnx/backend/test/case/node/hammingwindow.py 0.00% 2 Missing ⚠️
onnx/backend/test/case/node/hannwindow.py 0.00% 2 Missing ⚠️
onnx/test/test_backend_onnxruntime.py 0.00% 2 Missing ⚠️
onnx/backend/test/case/model/sequence.py 0.00% 1 Missing ⚠️
onnx/backend/test/case/node/adagrad.py 0.00% 1 Missing ⚠️
... and 7 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6196      +/-   ##
==========================================
+ Coverage   56.95%   57.07%   +0.11%     
==========================================
  Files         506      506              
  Lines       30467    31061     +594     
  Branches     4592     4620      +28     
==========================================
+ Hits        17353    17728     +375     
- Misses      12285    12505     +220     
+ Partials      829      828       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

xadupre added 4 commits June 21, 2024 19:47
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@justinchuby justinchuby added the auto update doc Generate md/proto files automatically using the CI pipeline label Jun 21, 2024
xadupre added 7 commits June 23, 2024 13:31
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
@justinchuby justinchuby changed the title Compile onnx with numpy>=2.0 Test onnx with numpy>=2.0 Jun 24, 2024
@xadupre xadupre enabled auto-merge June 25, 2024 07:36
@xadupre xadupre changed the title Test onnx with numpy>=2.0 Update onnx to work with numpy>=2.0 Jun 25, 2024
@xadupre xadupre requested review from gramalingam and wschin June 27, 2024 08:09
xadupre added 2 commits July 3, 2024 11:29
@xadupre xadupre added this pull request to the merge queue Jul 3, 2024
Merged via the queue into onnx:main with commit e537130 Jul 3, 2024
@xadupre xadupre deleted the np20 branch July 3, 2024 17:09
@cjvolzka cjvolzka mentioned this pull request Jul 19, 2024
andife pushed a commit to andife/onnx that referenced this pull request Jul 20, 2024
### Description
onnx compiled with numpy 1.x does not work with numpy 2.0. onnx compiled
with numpy 2.0 works numpy 1.x.

Fixes onnx#6136 Fixes
onnx#6197

---------

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### Description
onnx compiled with numpy 1.x does not work with numpy 2.0. onnx compiled
with numpy 2.0 works numpy 1.x.

Fixes onnx#6136 Fixes
onnx#6197

---------

Signed-off-by: Xavier Dupre <xadupre@microsoft.com>
Signed-off-by: Linsho Kaku <linsho@preferred.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto update doc Generate md/proto files automatically using the CI pipeline run release CIs Use this label to trigger release tests in CI
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Compatibility with numpy>=2.0 Numpy 2.0.0rc2 causes pytest on ONNX to fail
4 participants