Skip to content

Commit 402b9db

Browse files
authored
Disable message about ONNX configs on export (#659)
1 parent ff792c2 commit 402b9db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

optimum/exporters/openvino/convert.py

+2
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ def export_from_model(
564564
kwargs_shapes[input_name] if input_name in kwargs_shapes else DEFAULT_DUMMY_SHAPES[input_name]
565565
)
566566

567+
logging.disable(logging.INFO)
567568
export_config, models_and_export_configs = _get_submodels_and_export_configs(
568569
model=model,
569570
task=task,
@@ -578,6 +579,7 @@ def export_from_model(
578579
legacy=False,
579580
exporter="openvino",
580581
)
582+
logging.disable(logging.NOTSET)
581583

582584
if ov_config is None:
583585
if library_name == "diffusers":

0 commit comments

Comments
 (0)