Skip to content

Commit

Permalink
Update offline_transformations (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
helena-intel authored Dec 24, 2022
1 parent dc6f2a2 commit 226bc96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion optimum/intel/openvino/modeling_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import openvino
from huggingface_hub import HfApi, hf_hub_download
from huggingface_hub.utils import EntryNotFoundError
from openvino.offline_transformations import apply_moc_transformations, compress_model_transformation
from openvino._offline_transformations import apply_moc_transformations, compress_model_transformation
from openvino.runtime import Core
from optimum.modeling_base import OptimizedModel

Expand Down
2 changes: 1 addition & 1 deletion optimum/intel/openvino/modeling_base_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import openvino
from huggingface_hub import HfApi, hf_hub_download
from huggingface_hub.utils import EntryNotFoundError
from openvino.offline_transformations import compress_model_transformation
from openvino._offline_transformations import compress_model_transformation
from optimum.onnx.configuration import DecoderOnnxConfig, EncoderOnnxConfig
from optimum.onnx.modeling_seq2seq import _DecoderWithLMhead

Expand Down
2 changes: 1 addition & 1 deletion optimum/intel/openvino/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from nncf.torch.dynamic_graph.io_handling import wrap_nncf_model_inputs_with_objwalk
from nncf.torch.initialization import PTInitializingDataLoader
from nncf.torch.nncf_network import NNCFNetwork
from openvino.offline_transformations import compress_quantize_weights_transformation
from openvino._offline_transformations import compress_quantize_weights_transformation
from openvino.runtime import Core
from optimum.quantization_base import OptimumQuantizer

Expand Down
2 changes: 1 addition & 1 deletion optimum/intel/openvino/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
from nncf.config.structures import BNAdaptationInitArgs, QuantizationRangeInitArgs
from nncf.torch import create_compressed_model
from nncf.torch.nncf_network import NNCFNetwork
from openvino.offline_transformations import compress_quantize_weights_transformation
from openvino._offline_transformations import compress_quantize_weights_transformation
from openvino.runtime import Core
from optimum.utils import logging

Expand Down

0 comments on commit 226bc96

Please sign in to comment.