Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tools/onnx_subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.

this seems text result, is it really needed to render as bash ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The 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

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.

OK... I don't understand why render as bash but anyway you want it.

Single model inference completed!
Multiple subgraph inference completed!
Comparing inference results between single ONNX model and multiple subgraphs...
Output '316' MSE: 5.125894080395578e-14
```