Open espnetUser opened 4 months ago
@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...
Would you create a PR for this?
@Masao-Someki: Thanks for getting back to me!
Would you create a PR for this?
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!