Skip to content

Arm backend: Add info message to assertions in fold_qdq_with_annotated_qparams_pass #9895

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

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,14 @@ def call(self, graph_module: GraphModule) -> PassResult:
continue

# Make sure we haven't already set qparams meta information on the node
assert "input_qparams" not in n.meta.keys()
assert "output_qparams" not in n.meta.keys()
assert "input_qparams" not in n.meta, (
f'Unexpected key "input_qparams" found in meta for node {n}. '
"input_qparams should not have been set at this point"
)
assert "output_qparams" not in n.meta, (
f'Unexpected key "output_qparams" found in meta for node {n}. '
"output_qparams should not have been set at this point"
)

# for the inputs and outputs search the graph for quantization info and
# store the information in a dict with order of the _tensor_ inputs as key,
Expand Down
Loading