Skip to content

Commit

Permalink
Update export function path in neural-compressor2.6
Browse files Browse the repository at this point in the history
Signed-off-by: Cheng, Penghui <[email protected]>
  • Loading branch information
PenghuiCheng committed Jun 21, 2024
1 parent ef23a5d commit 3898e37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion optimum/intel/neural_compressor/quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import torch
from datasets import Dataset, load_dataset
from neural_compressor.config import PostTrainingQuantConfig
from neural_compressor.experimental.export import torch_to_int8_onnx
from neural_compressor.utils.export import torch_to_int8_onnx
from neural_compressor.model.onnx_model import ONNXModel
from neural_compressor.model.torch_model import IPEXModel, PyTorchModel
from neural_compressor.quantization import fit
Expand Down
2 changes: 1 addition & 1 deletion optimum/intel/neural_compressor/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from neural_compressor import training
from neural_compressor.compression import DistillationCallbacks
from neural_compressor.conf.pythonic_config import _BaseQuantizationConfig
from neural_compressor.experimental.export import torch_to_fp32_onnx, torch_to_int8_onnx
from neural_compressor.utils.export import torch_to_fp32_onnx, torch_to_int8_onnx
from packaging import version
from torch import nn
from torch.utils.data import Dataset, RandomSampler
Expand Down

0 comments on commit 3898e37

Please sign in to comment.