Report QNN detail fallback reasons - #1289
Open
Qiong Wu (qiowu) (DingmaomaoBJTU) wants to merge 1 commit into
Open
Report QNN detail fallback reasons#1289Qiong Wu (qiowu) (DingmaomaoBJTU) wants to merge 1 commit into
Qiong Wu (qiowu) (DingmaomaoBJTU) wants to merge 1 commit into
Conversation
Qiong Wu (qiowu) (DingmaomaoBJTU)
requested a review
from a team
as a code owner
August 7, 2026 00:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fallback_reasonwhen QNN detail op tracing degrades to basic CSVbasic_fallbackexit-0 contract while showing reason-specific CLI guidancerun_qhas_viewer() -> Path | NoneAPI through a compatibility wrapperProblem
Every QHAS failure previously collapsed into
status="basic_fallback"with no reason. The CLI always suggested settingQNN_SDK_ROOT, even when the SDK was already configured and the actual issue was a missing optrace schematic on a precompiled EPContext model. Machine consumers could not distinguish causes either.Behavior
The op-trace JSON now includes an additive
fallback_reasonfield with stable values:qnn_log_missingschematic_missingsdk_missingviewer_failedqhas_output_missingqhas_parse_failedViewer preparation, subprocess, output inspection, SDK discovery, QNN-log metadata, and offline-QHAS metadata failures remain degraded detail results when usable CSV data exists rather than escaping as
parse_failed.Validation
python -m pytest tests/unit/session/monitor -q: 243 passedpython -m pytest tests/unit/commands/test_perf_optracing.py -q: 62 passed, 1 hardware-gated skipQNN_SDK_ROOTconfigured and a precompiled keen_hominy EPContext lacking a schematic:basic_fallbackschematic_missingQNN_SDK_ROOT