Skip to content

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

Merged
seanshpark merged 3 commits intoSamsung:masterfrom
chenyx113:onnx-subgraph-0219
Feb 20, 2025
Merged

[tools/onnx-subgraph] Add onnx subgraph python code by given nodes#14718
seanshpark merged 3 commits intoSamsung:masterfrom
chenyx113:onnx-subgraph-0219

Conversation

@chenyx113
Copy link
Copy Markdown
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 [email protected]

…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 <[email protected]>
@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 <[email protected]>
remove duplicated code
model.graph.value_info.append(output)
onnx.save(model, input_path)

f1 = open(instrfile, "r")
Copy link
Copy Markdown
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
Copy Markdown
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
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