Skip to content

Commit 5f6c597

Browse files
authored
Update optimum/exporters/openvino/convert.py
1 parent 40ef93f commit 5f6c597

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

optimum/exporters/openvino/convert.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ def export_from_model(
616616
f"Compression of the weights to {ov_config.quantization_config} requires nncf, please install it with `pip install nncf`"
617617
)
618618

619-
library_name = _infer_library_from_model_or_model_class(model, library_name=library_name)
619+
if library_name is None:
620+
library_name = _infer_library_from_model_or_model_class(model)
620621
if library_name != "open_clip":
621622
TasksManager.standardize_model_attributes(model, library_name=library_name)
622623

0 commit comments

Comments
 (0)