Skip to content
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

Fix conversion of scalar constants into numpy arrays in the evaluator #1970

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xadupre
Copy link
Member

@xadupre xadupre commented Nov 28, 2024

Reply to issue #1969 and fixes one remaining bug happening when converting scalars into numpy constants.

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.05%. Comparing base (99cf79f) to head (96939fb).

Files with missing lines Patch % Lines
onnxscript/evaluator.py 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1970      +/-   ##
==========================================
- Coverage   75.13%   75.05%   -0.09%     
==========================================
  Files         265      265              
  Lines       28907    28909       +2     
  Branches     3331     3332       +1     
==========================================
- Hits        21720    21698      -22     
- Misses       6158     6180      +22     
- Partials     1029     1031       +2     

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

h2 = 1.799

@script()
def conv(a1: FLOAT, a2: FLOAT, a3: FLOAT, a4: FLOAT, a5: FLOAT, a6: FLOAT) -> FLOAT:

Check warning

Code scanning / lintrunner

PYLINT/W0613 Warning test

Unused argument 'a3' (unused-argument)
See unused-argument. To disable, use # pylint: disable=unused-argument
tests/issues_2024_test.py Fixed Show fixed Hide fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants