Skip to content

Commit

Permalink
Add RelPosAttentino into list of quantize node
Browse files Browse the repository at this point in the history
  • Loading branch information
Masao-Someki committed Jul 18, 2022
1 parent b87eb83 commit 1765177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espnet_onnx/export/asr/export_asr.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def _quantize_model(self, model_from, model_to, optimize, verbose):
models = glob.glob(os.path.join(model_from, "*.onnx"))

if self.export_config['use_ort_for_espnet']:
op_types_to_quantize = ['Attention', 'CrossAttention', 'MatMul']
op_types_to_quantize = ['Attention', 'CrossAttention', 'RelPosAttention', 'MatMul']
else:
op_types_to_quantize=['Attention', 'MatMul']

Expand Down

0 comments on commit 1765177

Please sign in to comment.