File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
optimum/intel/neural_compressor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 35
35
import torch .distributed as dist
36
36
from neural_compressor import training
37
37
from neural_compressor .compression import DistillationCallbacks
38
- from neural_compressor .conf .pythonic_config import _BaseQuantizationConfig
39
38
from packaging import version
40
39
from torch import nn
41
40
from torch .utils .data import Dataset , RandomSampler
107
106
from optimum .exporters .onnx import OnnxConfig
108
107
109
108
if is_neural_compressor_version ("<" , "2.6" ):
109
+ from neural_compressor .conf .pythonic_config import _BaseQuantizationConfig
110
110
from neural_compressor .experimental .export import torch_to_fp32_onnx , torch_to_int8_onnx
111
111
else :
112
+ from neural_compressor .config import _BaseQuantizationConfig
112
113
from neural_compressor .utils .export import torch_to_fp32_onnx , torch_to_int8_onnx
113
114
114
115
You can’t perform that action at this time.
0 commit comments