Skip to content

Resurrect check function context logic #5778

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

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

justinchuby
Copy link
Member

@justinchuby justinchuby commented Nov 29, 2023

Description

Resurrect check function context logic to handle when context is not provided to check_function. We need to support None because otherwise check_function breaks backward compatibility when only the first argument is provided.

Motivation and Context

Fix #5774

Signed-off-by: Justin Chu <justinchu@microsoft.com>
@justinchuby justinchuby requested a review from a team as a code owner November 29, 2023 17:39
@justinchuby
Copy link
Member Author

@gramalingam

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (5be7f31) 56.33% compared to head (cdb35c8) 56.34%.

Files Patch % Lines
onnx/checker.py 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5778   +/-   ##
=======================================
  Coverage   56.33%   56.34%           
=======================================
  Files         503      503           
  Lines       29626    29626           
  Branches     4436     4438    +2     
=======================================
+ Hits        16691    16692    +1     
+ Misses      12120    12119    -1     
  Partials      815      815           

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

@justinchuby justinchuby added the module: checker onnx.checker label Nov 30, 2023
@justinchuby justinchuby requested a review from jcwchen November 30, 2023 18:33
@justinchuby justinchuby added this pull request to the merge queue Nov 30, 2023
Merged via the queue into onnx:main with commit cd35663 Nov 30, 2023
@justinchuby justinchuby deleted the justinchu/check-function branch November 30, 2023 23:51
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### Description

Resurrect check function context logic to handle when context is not
provided to `check_function`. We need to support None because otherwise
`check_function` breaks backward compatibility when only the first
argument is provided.

### Motivation and Context

Fix onnx#5774

---------

Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Linsho Kaku <linsho@preferred.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: checker onnx.checker
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Resurrect check function context logic
2 participants