Skip to content

Conversation

xadupre
Copy link
Contributor

@xadupre xadupre commented Nov 15, 2022

Replaces #4657.

Signed-off-by: xadupre <xadupre@microsoft.com>
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label Nov 15, 2022
@jcwchen
Copy link
Member

jcwchen commented Nov 15, 2022

Thank you for fixing this. Please allow me to reopen this PR to trigger release CIs.

@jcwchen jcwchen closed this Nov 15, 2022
@jcwchen jcwchen reopened this Nov 15, 2022
@jcwchen jcwchen added this to the 1.13 milestone Nov 15, 2022
Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

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

Tests with NumPy 1.16.6 now looks good, but tests in Windows x86 are still failing. (See https://github.com/onnx/onnx/actions/runs/3471448294/jobs/5800951391)

@xadupre
Copy link
Contributor Author

xadupre commented Nov 15, 2022

Sorry for that, building onnx on Windows is always difficult. I'm working on that.

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

xadupre commented Nov 15, 2022

The issues come from the use of int64 for integers. A couple of functions in x64 distribution don't support that.

@xadupre
Copy link
Contributor Author

xadupre commented Nov 16, 2022

I added some code to catch the exceptions raised by numpy on python x86 to convert int64 into python int. It was working locally for me. I added an explicit comment that it was needed for x86 in the few places it was needed.

Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Thank you for fixing them!

@jcwchen jcwchen merged commit d5c27e1 into onnx:main Nov 16, 2022
justinchuby pushed a commit to justinchuby/onnx that referenced this pull request Jan 27, 2023
* Fix ReferenceEvaluator for numpy 1.16.6

Signed-off-by: xadupre <xadupre@microsoft.com>

* fix bug in _unsqueeze

Signed-off-by: xadupre <xadupre@microsoft.com>

* disabling failing tests on windows x86 and old numpy

Signed-off-by: xadupre <xadupre@microsoft.com>

* fix unit test for x86

Signed-off-by: xadupre <xadupre@microsoft.com>

Signed-off-by: xadupre <xadupre@microsoft.com>
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
* Fix ReferenceEvaluator for numpy 1.16.6

Signed-off-by: xadupre <xadupre@microsoft.com>

* fix bug in _unsqueeze

Signed-off-by: xadupre <xadupre@microsoft.com>

* disabling failing tests on windows x86 and old numpy

Signed-off-by: xadupre <xadupre@microsoft.com>

* fix unit test for x86

Signed-off-by: xadupre <xadupre@microsoft.com>

Signed-off-by: xadupre <xadupre@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants