Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@konstantin-pueckler-qc
Copy link
Contributor

Description

np.vectorize needs to be told the outputs type via the otypes argument. Otherwise, applying the vectorized function to an empty array will result in an error.

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]>
@konstantin-pueckler-qc konstantin-pueckler-qc requested a review from a team as a code owner July 24, 2025 13:39
@github-project-automation github-project-automation bot moved this to In progress in PR Tracker Jul 24, 2025
@github-project-automation github-project-automation bot moved this from In progress to Reviewer approved in PR Tracker Jul 24, 2025
@justinchuby
Copy link
Member

Thank you!

@codecov
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.64%. Comparing base (019d4d1) to head (a33ebdc).
Report is 7 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7170   +/-   ##
=======================================
  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.
📢 Have feedback on the report? Share it here.

@justinchuby justinchuby merged commit 2b94199 into onnx:main Jul 24, 2025
37 checks passed
@github-project-automation github-project-automation bot moved this from Reviewer approved to Done in PR Tracker Jul 24, 2025
alx256 pushed a commit to alx256/onnx that referenced this pull request Aug 1, 2025
### Description
<!-- - Describe your changes. -->

``np.vectorize`` needs to be told the outputs type via the ``otypes``
argument. Otherwise, applying the vectorized function to an empty array
will result in an error.

### 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]>
MagellaX pushed a commit to MagellaX/onnx that referenced this pull request Aug 9, 2025
### Description
<!-- - Describe your changes. -->

``np.vectorize`` needs to be told the outputs type via the ``otypes``
argument. Otherwise, applying the vectorized function to an empty array
will result in an error.

### 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants