|
58 | 58 | raise OptionalDependencyNotAvailable()
|
59 | 59 | except OptionalDependencyNotAvailable:
|
60 | 60 | _import_structure["utils.dummy_openvino_and_nncf_objects"] = [
|
61 |
| - "OVConfig", |
62 | 61 | "OVQuantizer",
|
63 | 62 | "OVTrainer",
|
64 | 63 | "OVTrainingArguments",
|
65 |
| - "OVWeightQuantizationConfig", |
66 | 64 | ]
|
67 | 65 | else:
|
68 |
| - _import_structure["openvino"].extend( |
69 |
| - ["OVConfig", "OVQuantizer", "OVTrainer", "OVTrainingArguments", "OVWeightQuantizationConfig"] |
70 |
| - ) |
| 66 | + _import_structure["openvino"].extend(["OVQuantizer", "OVTrainer", "OVTrainingArguments"]) |
71 | 67 |
|
72 | 68 | try:
|
73 | 69 | if not (is_openvino_available() and is_diffusers_available()):
|
|
119 | 115 | "OVModelForSpeechSeq2Seq",
|
120 | 116 | "OVModelForSequenceClassification",
|
121 | 117 | "OVModelForTokenClassification",
|
| 118 | + "OVWeightQuantizationConfig", |
| 119 | + "OVConfig", |
122 | 120 | ]
|
123 | 121 | )
|
124 | 122 |
|
|
180 | 178 | raise OptionalDependencyNotAvailable()
|
181 | 179 | except OptionalDependencyNotAvailable:
|
182 | 180 | from .utils.dummy_openvino_and_nncf_objects import (
|
183 |
| - OVConfig, |
184 | 181 | OVQuantizer,
|
185 | 182 | OVTrainer,
|
186 | 183 | OVTrainingArguments,
|
187 |
| - OVWeightQuantizationConfig, |
188 | 184 | )
|
189 | 185 | else:
|
190 |
| - from .openvino import OVConfig, OVQuantizer, OVTrainer, OVTrainingArguments, OVWeightQuantizationConfig |
| 186 | + from .openvino import OVQuantizer, OVTrainer, OVTrainingArguments |
191 | 187 |
|
192 | 188 | try:
|
193 | 189 | if not (is_openvino_available() and is_diffusers_available()):
|
|
218 | 214 | from .utils.dummy_openvino_objects import *
|
219 | 215 | else:
|
220 | 216 | from .openvino import (
|
| 217 | + OVConfig, |
221 | 218 | OVModelForAudioClassification,
|
222 | 219 | OVModelForAudioFrameClassification,
|
223 | 220 | OVModelForAudioXVector,
|
|
231 | 228 | OVModelForSequenceClassification,
|
232 | 229 | OVModelForSpeechSeq2Seq,
|
233 | 230 | OVModelForTokenClassification,
|
| 231 | + OVWeightQuantizationConfig, |
234 | 232 | )
|
235 | 233 |
|
236 | 234 | try:
|
|
0 commit comments