Skip to content

Fix onnx.compose when connecting subgraphs #5991

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

Conversation

Abhishek-TyRnT
Copy link
Contributor

Description

Recursively searching through the nodes for input in merge graphs function.

Motivation and Context

While connecting and merging two models in which there is subgraph in one of them, inputs and outputs of subgraph was being overlooked and were left dangling.

This fixes #5985

@Abhishek-TyRnT Abhishek-TyRnT requested a review from a team as a code owner March 3, 2024 01:29
Copy link

codecov bot commented Mar 3, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 56.81%. Comparing base (b590c5f) to head (9b0e272).

Files Patch % Lines
onnx/compose.py 72.72% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5991      +/-   ##
==========================================
- Coverage   56.82%   56.81%   -0.01%     
==========================================
  Files         506      506              
  Lines       30365    30370       +5     
  Branches     4590     4592       +2     
==========================================
+ Hits        17254    17256       +2     
- Misses      12283    12285       +2     
- Partials      828      829       +1     

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

Signed-off-by: Abhishek-TyRnT <kulkarnia168@gmail.com>
Signed-off-by: Abhishek-TyRnT <kulkarnia168@gmail.com>
Signed-off-by: Abhishek-TyRnT <kulkarnia168@gmail.com>
@Abhishek-TyRnT Abhishek-TyRnT force-pushed the connecting-subgraphs-in-onnx-merge branch from 595be55 to 570e23e Compare March 5, 2024 02:37
@justinchuby justinchuby enabled auto-merge March 5, 2024 02:39
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
@justinchuby justinchuby disabled auto-merge March 5, 2024 02:41
@justinchuby justinchuby enabled auto-merge March 5, 2024 02:41
@justinchuby justinchuby changed the title [BUG FIX] fix for connecting subgraphs Fix onnx.compose when connecting subgraphs Mar 5, 2024
@justinchuby justinchuby disabled auto-merge March 5, 2024 02:42
@justinchuby justinchuby enabled auto-merge March 5, 2024 02:42
@justinchuby justinchuby added this pull request to the merge queue Mar 5, 2024
Merged via the queue into onnx:main with commit 9a88353 Mar 5, 2024
isdanni pushed a commit to isdanni/onnx that referenced this pull request Mar 18, 2024
### Description
Recursively searching through the nodes for input in merge graphs
function.

### Motivation and Context
While connecting and merging two models in which there is subgraph in
one of them, inputs and outputs of subgraph was being overlooked and
were left dangling.

This fixes onnx#5985

---------

Signed-off-by: Abhishek-TyRnT <kulkarnia168@gmail.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: isdanni <leedanni@gmail.com>
linshokaku pushed a commit to linshokaku/onnx that referenced this pull request Oct 2, 2024
### Description
Recursively searching through the nodes for input in merge graphs
function.

### Motivation and Context
While connecting and merging two models in which there is subgraph in
one of them, inputs and outputs of subgraph was being overlooked and
were left dangling.

This fixes onnx#5985

---------

Signed-off-by: Abhishek-TyRnT <kulkarnia168@gmail.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.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
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Inputs from a subgraph disappear when the graph is used as second input in onnx.compose.merge_models
3 participants