Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix coverage
Signed-off-by: yiliu30 <[email protected]>
  • Loading branch information
yiliu30 committed Jun 18, 2024
commit 0f3618a2cfa880e533f0ac7c0ae05818647742e7
Binary file modified .coverage
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,11 @@ def _parse_node_candidate_set_from_user_config(config, gm):
op_name_filters = []
for op_type_name, config in op_type_configs.items():
op_type = getattr(torch.nn, op_type_name)
if config.act_dtype == "fp16":
if config.act_dtype == "fp16": # pragma: no cover
filter = xpq._get_module_type_filter(op_type)
op_type_filters.append(filter)
for op_name, config in op_name_configs.items():
if config.act_dtype == "fp16":
if config.act_dtype == "fp16": # pragma: no cover
filter = xpq._get_module_name_filter(op_name)
op_name_filters.append(filter)
node_set_from_user_config = set()
Expand Down
4 changes: 2 additions & 2 deletions neural_compressor/torch/algorithms/pt2e_quant/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def create_xiq_quantizer_from_pt2e_config(config, is_dynamic=False) -> X86Induct
# set global
global_config = _map_inc_config_to_torch_quant_config(config, is_dynamic)
quantizer.set_global(global_config)
# Skip the local config for now (need torch >= 2.3.2)
if GT_TORCH_VERSION_2_3_2:
# need torch >= 2.3.2
if GT_TORCH_VERSION_2_3_2: # pragma: no cover
op_type_config_dict, op_name_config_dict = config._get_op_name_op_type_config()
if op_type_config_dict:
for op_type, config in op_type_config_dict.items():
Expand Down