Skip to content

onnxruntime_perf_test: Add -u option to save optimized model#2227

Merged
ke1337 merged 2 commits intomasterfrom
gt/kedeng/save
Oct 28, 2019
Merged

onnxruntime_perf_test: Add -u option to save optimized model#2227
ke1337 merged 2 commits intomasterfrom
gt/kedeng/save

Conversation

@ke1337
Copy link
Contributor

@ke1337 ke1337 commented Oct 22, 2019

Description: onnxruntime_perf_test: Add -u option to save optimized model

Motivation and Context

  • This helps review the fused model

@ke1337 ke1337 requested a review from a team as a code owner October 22, 2019 19:16
@skottmckay
Copy link
Contributor

skottmckay commented Oct 22, 2019

If we're going to add this I'd strongly suggest this PR gets added as well: #647 #Resolved

"\t-P: Use parallel executor instead of sequential executor.\n"
"\t-o [optimization level]: Default is 1. Valid values are 0 (disable), 1 (basic), 2 (extended), 99 (all).\n"
"\t\tPlease see onnxruntime_c_api.h (enum GraphOptimizationLevel) for the full list of all optimization levels. \n"
"\t-u [optimized_model_path]: Specify the optimized model path for saving.\n"
Copy link
Contributor

@tianleiwu tianleiwu Oct 23, 2019

Choose a reason for hiding this comment

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

This is useful. I hope that shape inference result could be also be output in the graph (maybe in another pull request).

How about change -u to -O? Since Optimized is easy to remember (The drawback is -o is taken). #Pending

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought -O might be reserved for other more frequent options. This option is relatively infrequent so I picked u to avoid conflictions.


In reply to: 338309668 [](ancestors = 338309668)

@ke1337
Copy link
Contributor Author

ke1337 commented Oct 23, 2019

Sure.


In reply to: 545113121 [](ancestors = 545113121)

@ke1337 ke1337 merged commit 5611a52 into master Oct 28, 2019
@ke1337 ke1337 deleted the gt/kedeng/save branch October 30, 2019 18:59
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.

4 participants