Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: xin3he <[email protected]>
  • Loading branch information
xin3he committed Jul 8, 2024
1 parent 8201841 commit 3c8d881
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions neural_compressor/adaptor/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,8 @@ def _combine_capability(self, bf16_ops, q_capability):
q_capability["opwise"][bf16_op] = [bf16_config, fp32_config]
if bf16_op[1] not in q_capability["optypewise"]:
q_capability["optypewise"][bf16_op[1]] = [bf16_config, fp32_config]
if bf16_op[1] in q_capability["optypewise"] and bf16_config not in q_capability["optypewise"][bf16_op[1]]:
q_capability["optypewise"][bf16_op[1]].append(bf16_config)
return q_capability

def get_fused_list(self, model):
Expand Down

0 comments on commit 3c8d881

Please sign in to comment.