-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Fix backend test for ReferenceEvaluator with numpy 1.16.6 #4658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: xadupre <xadupre@microsoft.com>
Thank you for fixing this. Please allow me to reopen this PR to trigger release CIs. |
There was a problem hiding this 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)
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>
The issues come from the use of int64 for integers. A couple of functions in x64 distribution don't support that. |
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. |
There was a problem hiding this 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!
* 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>
* 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>
Replaces #4657.