File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
optimum/exporters/openvino Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 21
21
22
22
from optimum .exporters import TasksManager
23
23
from optimum .exporters .onnx .base import OnnxConfig
24
-
25
-
26
24
from optimum .utils .save_utils import maybe_load_preprocessors
27
25
28
26
from ...intel .utils .import_utils import (
@@ -165,7 +163,6 @@ def main_export(
165
163
# default_config = _check_default_4bit_configs(config)
166
164
167
165
if ov_config is None and compression_option is not None :
168
-
169
166
from ...intel .openvino .configuration import OVConfig
170
167
171
168
if compression_option == "fp16" :
Original file line number Diff line number Diff line change 32
32
from optimum .exporters .onnx .convert import check_dummy_inputs_are_allowed
33
33
from optimum .exporters .onnx .convert import export_pytorch as export_pytorch_to_onnx
34
34
from optimum .exporters .onnx .convert import export_tensorflow as export_tensorflow_onnx
35
-
36
35
from optimum .utils import DEFAULT_DUMMY_SHAPES , is_diffusers_available
37
36
from optimum .utils .save_utils import maybe_save_preprocessors
38
37
48
47
remove_none_from_dummy_inputs ,
49
48
)
50
49
50
+
51
51
if is_optimum_version (">=" , "1.16.99" ):
52
52
from optimum .exporters .onnx .utils import _get_submodels_and_onnx_configs
53
53
@@ -598,7 +598,6 @@ def export_from_model(
598
598
599
599
if num_parameters >= _MAX_UNCOMPRESSED_SIZE :
600
600
if is_nncf_available ():
601
-
602
601
from ...intel .openvino .configuration import OVConfig
603
602
604
603
ov_config = OVConfig (quantization_config = {"bits" : 8 })
You can’t perform that action at this time.
0 commit comments