-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Fix Softmax reference for inputs of length 1 #7169
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: Konstantin Pueckler <[email protected]>
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.
Could you add the PR description as a comment inline? Thanks
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7169 +/- ##
=======================================
Coverage 53.64% 53.64%
=======================================
Files 508 508
Lines 32177 32178 +1
Branches 2971 2971
=======================================
+ Hits 17260 17261 +1
Misses 14120 14120
Partials 797 797 ☔ View full report in Codecov by Sentry. |
### Description ``np.asarray`` ensures that an array is returned. This is necessary since ``np.exp`` returns a scalar when the input has length 1. ### Motivation and Context The problem arouse when testing onnx-reference via the https://github.com/cbourjau/onnx-tests tool. Signed-off-by: Konstantin Pueckler <[email protected]> Signed-off-by: Alexander Poulson <[email protected]>
### Description ``np.asarray`` ensures that an array is returned. This is necessary since ``np.exp`` returns a scalar when the input has length 1. ### Motivation and Context The problem arouse when testing onnx-reference via the https://github.com/cbourjau/onnx-tests tool. Signed-off-by: Konstantin Pueckler <[email protected]> Signed-off-by: Yash solanki <[email protected]>
Description
np.asarrayensures that an array is returned. This is necessary sincenp.expreturns a scalar when the input has length 1.Motivation and Context
The problem arouse when testing onnx-reference via the https://github.com/cbourjau/onnx-tests tool.