Skip to content

Commit e9984e1

Browse files
committed
style
1 parent 8204fd7 commit e9984e1

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

optimum/exporters/openvino/__main__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222
from optimum.exporters import TasksManager
2323
from optimum.exporters.onnx.base import OnnxConfig
24-
25-
2624
from optimum.utils.save_utils import maybe_load_preprocessors
2725

2826
from ...intel.utils.import_utils import (
@@ -165,7 +163,6 @@ def main_export(
165163
# default_config = _check_default_4bit_configs(config)
166164

167165
if ov_config is None and compression_option is not None:
168-
169166
from ...intel.openvino.configuration import OVConfig
170167

171168
if compression_option == "fp16":

optimum/exporters/openvino/convert.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from optimum.exporters.onnx.convert import check_dummy_inputs_are_allowed
3333
from optimum.exporters.onnx.convert import export_pytorch as export_pytorch_to_onnx
3434
from optimum.exporters.onnx.convert import export_tensorflow as export_tensorflow_onnx
35-
3635
from optimum.utils import DEFAULT_DUMMY_SHAPES, is_diffusers_available
3736
from optimum.utils.save_utils import maybe_save_preprocessors
3837

@@ -48,6 +47,7 @@
4847
remove_none_from_dummy_inputs,
4948
)
5049

50+
5151
if is_optimum_version(">=", "1.16.99"):
5252
from optimum.exporters.onnx.utils import _get_submodels_and_onnx_configs
5353

@@ -598,7 +598,6 @@ def export_from_model(
598598

599599
if num_parameters >= _MAX_UNCOMPRESSED_SIZE:
600600
if is_nncf_available():
601-
602601
from ...intel.openvino.configuration import OVConfig
603602

604603
ov_config = OVConfig(quantization_config={"bits": 8})

0 commit comments

Comments
 (0)