-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[QNN EP] Dump QNN json graph #22843
base: main
Are you sure you want to change the base?
[QNN EP] Dump QNN json graph #22843
Conversation
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.
You can commit the suggested changes from lintrunner.
} else if (key == "enable_htp_fp16_precision" || key == "offload_graph_io_quantization" || | ||
key == "enable_qnn_graph_dump") { | ||
std::unordered_set<std::string> supported_options = {"0", "1"}; |
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.
} else if (key == "enable_htp_fp16_precision" || key == "offload_graph_io_quantization" || | |
key == "enable_qnn_graph_dump") { | |
std::unordered_set<std::string> supported_options = {"0", "1"}; | |
} else if (key == "enable_htp_fp16_precision" || key == "offload_graph_io_quantization" || | |
key == "enable_qnn_graph_dump") { | |
std::unordered_set<std::string> supported_options = {"0", "1"}; |
|
||
so.AppendExecutionProvider("QNN", options); | ||
|
||
Ort::Status status(OrtSessionOptionsAppendExecutionProvider_CPU(so, 1)); |
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.
don't know how this line got here. should remove it
@@ -315,7 +316,7 @@ OnnxRuntimeTestSession::OnnxRuntimeTestSession(Ort::Env& env, std::random_device | |||
ORT_THROW(R"(Wrong key type entered. Choose from options: ['backend_path', | |||
'profiling_level', 'profiling_file_path', 'rpc_control_latency', 'vtcm_mb', 'htp_performance_mode', | |||
'qnn_saver_path', 'htp_graph_finalization_optimization_mode', 'qnn_context_priority', 'soc_model', | |||
'htp_arch', 'device_id', 'enable_htp_fp16_precision', 'offload_graph_io_quantization'])"); | |||
'htp_arch', 'device_id', 'enable_htp_fp16_precision', 'offload_graph_io_quantization', 'enable_qnn_graph_dump'])"); |
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.
add "qnn_graph_dump_dir"
Description
Motivation and Context