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

Merged
merged 14 commits into from
Feb 14, 2025
Merged

[QNN EP] Dump QNN json graph #22843

merged 14 commits into from
Feb 14, 2025

Conversation

adrianlizarraga
Copy link
Contributor

@adrianlizarraga adrianlizarraga commented Nov 14, 2024

Description

Adds QNN provider options to save the generated QNN graphs into JSON files. These JSON files contain information about the QNN nodes, tensors, data types used in the corresponding graph. These JSON files can optionally be loaded by QNN Netron to visualize the QNN graphs generated by QNN EP.

New QNN provider options:

  • "dump_json_qnn_graph": Set to "1" to dump QNN graphs generated by QNN EP as JSON files. Each graph partition assigned to QNN EP is dumped to a separate file.
  • "json_qnn_graph_dir": Directory in which to dump QNN JSON graphs. If not specified, QNN graphs are dumped in the program's current working directory. Ignored if "dump_json_qnn_graph" is not set.

Motivation and Context

Makes it easier to debug, visualize, and understand the QNN graphs generated by QNN EP.

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.

onnxruntime/test/perftest/ort_test_session.cc Outdated Show resolved Hide resolved
@adrianlizarraga adrianlizarraga marked this pull request as ready for review February 11, 2025 23:44
@adrianlizarraga adrianlizarraga merged commit 3753f5c into main Feb 14, 2025
128 of 130 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/dump-qnn-graph branch February 14, 2025 01:27
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