Skip to content

Commit 777d8ab

Browse files
committed
refine code
Signed-off-by: Mengni Wang <mengni.wang@intel.com>
1 parent 8f80b5c commit 777d8ab

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

neural_compressor/onnxrt/quantization/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from neural_compressor.common import Logger
3131
from neural_compressor.common.base_config import BaseConfig, register_config, register_supported_configs_for_fwk
3232
from neural_compressor.common.utils import DEFAULT_WHITE_LIST, OP_NAME_OR_MODULE_TYPE, RTN, SMOOTH_QUANT
33-
from neural_compressor.onnxrt.utils import PRIORITY_SQ
33+
from neural_compressor.onnxrt.utils import PRIORITY_SMOOTH_QUANT
3434

3535
logger = Logger().get_logger()
3636

@@ -168,7 +168,7 @@ def get_default_rtn_config() -> RTNConfig:
168168
######################## SmoohQuant Config ###############################
169169

170170

171-
@register_config(framework_name=FRAMEWORK_NAME, algo_name=SMOOTH_QUANT, priority=PRIORITY_SQ)
171+
@register_config(framework_name=FRAMEWORK_NAME, algo_name=SMOOTH_QUANT, priority=PRIORITY_SMOOTH_QUANT)
172172
class SmoohQuantConfig(BaseConfig, StaticQuantConfig):
173173
"""Smooth quant quantization config."""
174174

neural_compressor/onnxrt/utils/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# limitations under the License.
1414

1515
from neural_compressor.onnxrt.utils.onnx_model import ONNXModel
16-
from neural_compressor.onnxrt.utils.utility import PRIORITY_SQ
16+
from neural_compressor.onnxrt.utils.utility import PRIORITY_SMOOTH_QUANT
1717

1818
__all__ = [
1919
"ONNXModel",
20-
"PRIORITY_SQ",
20+
"PRIORITY_SMOOTH_QUANT",
2121
]

neural_compressor/onnxrt/utils/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
MAXIMUM_PROTOBUF = 2147483648
3636

37-
PRIORITY_SQ = 80
37+
PRIORITY_SMOOTH_QUANT = 80
3838

3939
dtype_mapping = {
4040
"fp32": 1,

0 commit comments

Comments
 (0)