Skip to content
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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

adrianlizarraga
Copy link
Contributor

Description

Motivation and Context

Copy link
Contributor

@github-actions github-actions bot left a 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.

Comment on lines 305 to 307
} 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"};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} 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));
Copy link
Contributor Author

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'])");
Copy link
Contributor Author

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"

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