Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
Signed-off-by: Mengni Wang <[email protected]>
  • Loading branch information
mengniwang95 committed Sep 19, 2024
1 parent b51d8ec commit d455061
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions onnx_neural_compressor/algorithms/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def quant_matmul_weight_only(
new_inits.append(q_weight_tensor)
return new_nodes, new_inits, remove_nodes


def prepare_inputs(model, data_reader, providers):
"""Prepare inputs for weight only quantization.
Expand Down
4 changes: 2 additions & 2 deletions onnx_neural_compressor/quantization/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ def to_config_mapping(self, model: Union[onnx.ModelProto, str], config_list: Lis
model = onnx.load(model, load_external_data=False)

model_info = BaseConfig.get_model_info(model)

if config_list is None:
config_list = [self]
for config in config_list:
Expand Down Expand Up @@ -2015,7 +2015,7 @@ def to_config_mapping(self, model: Union[onnx.ModelProto, str], config_list: Lis
model = onnx.load(model, load_external_data=False)

model_info = BaseConfig.get_model_info(model)

if config_list is None:
config_list = [self]
for config in config_list:
Expand Down

0 comments on commit d455061

Please sign in to comment.