Skip to content

Commit e7c94b0

Browse files
Apply suggested changes
1 parent e744188 commit e7c94b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

optimum/exporters/openvino/__main__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class StoreAttr(object):
435435
submodel_path = Path(output) / submodel_path
436436
submodel = core.read_model(submodel_path)
437437

438-
quantization_config = ov_config.quantization_config if ov_config is not None else None
438+
quantization_config = None
439439
if ov_config is None:
440440
num_parameters = 0
441441
for op in submodel.get_ops():
@@ -451,6 +451,8 @@ class StoreAttr(object):
451451
"requires nncf. Please install it with `pip install nncf`"
452452
)
453453
break
454+
else:
455+
quantization_config = ov_config.quantization_config
454456
if quantization_config is None:
455457
continue
456458

0 commit comments

Comments
 (0)