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