-
Notifications
You must be signed in to change notification settings - Fork 178
[tools/onnx-subgraph] add guide in README.md for subgraphs verification #14821
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,3 +60,18 @@ sub models. | |
| ├── NPUsubgraph0.onnx | ||
| └── NPUsubgraph1.onnx | ||
| ``` | ||
| ## Verify the subgraphs inference with original model file | ||
| compare the MSE of original inference result and subgraphs inference result | ||
| ```bash | ||
| python scripts/single_vs_multiple_onnx.py \ | ||
| -s ./resnet-test.onnx \ | ||
| -m ./subgraphs/ \ | ||
| -n scripts/subgraphs_ios.txt | ||
| ``` | ||
| output: | ||
| ```bash | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this seems text result, is it really needed to render as
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, it is log printing example, I have changed to text format, thank you
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK... I don't understand why render as |
||
| Single model inference completed! | ||
| Multiple subgraph inference completed! | ||
| Comparing inference results between single ONNX model and multiple subgraphs... | ||
| Output '316' MSE: 5.125894080395578e-14 | ||
| ``` | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q) using indent (also in some other places in this file) will render as
code blockis this intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is description, I have removed indent, thank you