Skip to content

Commit ee9a981

Browse files
committed
Fix AttributeError in _mark_nodes_as_annotated when node is None
1 parent 490ec5c commit ee9a981

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backends/qualcomm/quantizer/rules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
def _mark_nodes_as_annotated(nodes: List[Node]):
3131
for node in nodes:
32+
if node is None:
33+
continue
3234
if Q_ANNOTATION_KEY not in node.meta:
3335
node.meta[Q_ANNOTATION_KEY] = QuantizationAnnotation()
3436
node.meta[Q_ANNOTATION_KEY]._annotated = True

0 commit comments

Comments
 (0)