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

[tools/onnx-subgraph] Add onnx subgraph python code by given nodes #14718

Merged
merged 3 commits into from
Feb 20, 2025

Conversation

chenyx113
Copy link
Contributor

related issue: #14534
historical full changes PR: #14613

  1. subgraphs_ios.txt is node position information for onnx model splitting, it will be generated by future code, it is used for smoking test now, and will be removed until can be generated auto
  2. extract_onnx.py can split the onnx model to sub models

ONE-DCO-1.0-Signed-off-by: Youxin Chen yx113.chen@samsung.com

…sition

1. subgraphs_ios.txt is node position information for onnx model splitting,
it will be generated by future code, we use it for smoking test now.
2. extract_onnx.py can split the onnx model to sub models

ONE-DCO-1.0-Signed-off-by: Youxin Chen <yx113.chen@samsung.com>
@chenyx113 chenyx113 marked this pull request as ready for review February 19, 2025 13:33
1. remove useless default value
2. change fixed setting to args

ONE-DCO-1.0-Signed-off-by: Youxin Chen <yx113.chen@samsung.com>
remove duplicated code
model.graph.value_info.append(output)
onnx.save(model, input_path)

f1 = open(instrfile, "r")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(optional) we may need to check file open error, maybe later.

Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thank you!

@seanshpark seanshpark merged commit a70cba1 into Samsung:master Feb 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants