You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed an issue when converting a Transducer model from espnet to espnet_onnx where the max_seq_len in the DefaultEncoder class was not properly set when specifying m.set_export_config(max_seq_len=5000) in top-level export script.
To me it looks like the issue is caused by incorrectly passing the export_config to the replace_modules method in get_encoder method here:
For instance, with current code OnnxRelPositionalEncoding was always initialized with default value of 512 instead of what was specified in export_config dict.
@Masao-Someki: Could you please take a look and let me know if that change looks correct?
Thanks!
The text was updated successfully, but these errors were encountered:
@espnetUser
Sorry for the late reply!
And thank you for reporting the bug!!
It looks like your change does fix the issue! It seems the code passes the export_config to the class as a dictionary rather than as individual arguments...
Hi,
I noticed an issue when converting a Transducer model from espnet to espnet_onnx where the
max_seq_len
in theDefaultEncoder
class was not properly set when specifyingm.set_export_config(max_seq_len=5000)
in top-level export script.To me it looks like the issue is caused by incorrectly passing the
export_config
to thereplace_modules
method inget_encoder
method here:For instance, with current code
OnnxRelPositionalEncoding
was always initialized with default value of 512 instead of what was specified inexport_config
dict.@Masao-Someki: Could you please take a look and let me know if that change looks correct?
Thanks!
The text was updated successfully, but these errors were encountered: