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

Skip to content

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

@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 <[email protected]>
@codecov
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 <[email protected]>
Signed-off-by: Linsho Kaku <[email protected]>
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