Skip to content

Commit abafacd

Browse files
martinlsmCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 3476cd8 commit abafacd

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

backends/arm/quantizer/arm_quantizer_utils.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,14 @@ def __init__(
258258
def get_quantizer_info(self):
259259
name = self.__class__.__name__
260260
targeted_nodes_description = str(self.node_finder)
261-
qconfig_label = (
262-
self.quantization_config.label
263-
if self.quantization_config.label is not None
264-
else self.quantization_config.__class__.__name__ # no label, fallback to class name
265-
)
261+
if self.quantization_config is None:
262+
qconfig_label = "NO_QCONFIG"
263+
else:
264+
qconfig_label = (
265+
self.quantization_config.label
266+
if self.quantization_config.label is not None
267+
else self.quantization_config.__class__.__name__ # no label, fallback to class name
268+
)
266269
support_config_path = self.pattern_matcher.support_dict_name
267270

268271
return QuantizerInfo(

0 commit comments

Comments
 (0)