Skip to content

Conversation

ice-tong
Copy link
Contributor

@ice-tong ice-tong commented Jul 23, 2024

Description

Fix #6249

This PR handle the optional input in onnx.shape_inference.infer_node_outputs via skip the optional input type. The following modification are introduced:

  • onnx/shape_inference.py Skip the input type if the input name is "".
  • onnx/test/inference_function_test.py Add a unit test case of optioal input for infer_node_outputs

Motivation and Context

See #6249 for more detail.

@ice-tong ice-tong requested a review from a team as a code owner July 23, 2024 03:41
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.19%. Comparing base (83194ed) to head (a4a34c9).
Report is 72 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6250      +/-   ##
==========================================
+ Coverage   56.95%   57.19%   +0.24%     
==========================================
  Files         506      507       +1     
  Lines       30467    31256     +789     
  Branches     4592     4663      +71     
==========================================
+ Hits        17353    17878     +525     
- Misses      12285    12530     +245     
- Partials      829      848      +19     

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

Signed-off-by: ice-tong <xych6@outlook.com>
@ice-tong ice-tong force-pushed the yancong_handle_optional_input branch from 4de441e to a4a34c9 Compare July 23, 2024 04:26
@justinchuby justinchuby requested a review from gramalingam July 23, 2024 13:10
@gramalingam gramalingam added this pull request to the merge queue Jul 23, 2024
@justinchuby justinchuby added the release notes Important changes to call out in release notes label Jul 23, 2024
@justinchuby justinchuby added this to the 1.17 milestone Jul 23, 2024
Merged via the queue into onnx:main with commit a850906 Jul 23, 2024
38 checks passed
andife pushed a commit to andife/onnx that referenced this pull request Aug 26, 2024
### Description
<!-- - Describe your changes. -->
Fix onnx#6249

This PR handle the optional input in
`onnx.shape_inference.infer_node_outputs` via skip the optional input
type. The following modification are introduced:
- `onnx/shape_inference.py` Skip the input type if the input name is "".
- `onnx/test/inference_function_test.py` Add a unit test case of optioal
input for `infer_node_outputs`

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->

See onnx#6249 for more detail.

Signed-off-by: ice-tong <xych6@outlook.com>
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### Description
<!-- - Describe your changes. -->
Fix onnx#6249

This PR handle the optional input in
`onnx.shape_inference.infer_node_outputs` via skip the optional input
type. The following modification are introduced:
- `onnx/shape_inference.py` Skip the input type if the input name is "".
- `onnx/test/inference_function_test.py` Add a unit test case of optioal
input for `infer_node_outputs`

### Motivation and Context
<!-- - Why is this change required? What problem does it solve? -->
<!-- - If it fixes an open issue, please link to the issue here. -->

See onnx#6249 for more detail.

Signed-off-by: ice-tong <xych6@outlook.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
release notes Important changes to call out in release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

The infer_node_outputs can not handle the optional inputs.
3 participants