Skip to content

Commit ac2fe4f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c701b95 commit ac2fe4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neural_compressor/torch/quantization/load_entry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def load(output_dir="./saved_results", model=None):
3737
qconfig_file_path = os.path.join(os.path.abspath(os.path.expanduser(output_dir)), "qconfig.json")
3838
with open(qconfig_file_path, "r") as f:
3939
per_op_qconfig = json.load(f)
40-
40+
4141
if " " in per_op_qconfig.keys(): # ipex qconfig format: {' ': {'q_op_infos': {'0': {'op_type': ...
4242
from neural_compressor.torch.algorithms.static_quant import load
4343

@@ -50,7 +50,7 @@ def load(output_dir="./saved_results", model=None):
5050
from neural_compressor.torch.algorithms.weight_only.save_load import load
5151

5252
return load(output_dir)
53-
53+
5454
model.qconfig = config_mapping
5555
if isinstance(config_object, FP8Config):
5656
from neural_compressor.torch.algorithms.habana_fp8 import load

0 commit comments

Comments
 (0)