mvts_transformer icon indicating copy to clipboard operation
mvts_transformer copied to clipboard

TypeError: forward() got an unexpected keyword argument 'is_causal'

Open zqxyus opened this issue 11 months ago • 6 comments

zqxyus avatar Mar 20 '24 03:03 zqxyus

when i tried use mvts_transformer to SpokenArabicDigits , the error occurred

zqxyus avatar Mar 20 '24 03:03 zqxyus

I have the same issue. Have you solved it yet?

annachester avatar Mar 27 '24 13:03 annachester

I solved it by adding "**kwargs" to the forward() function in the TransformerBatchNormEncoderLayer class.. this solves the issue that the argument 'is_casual' is no longer expected in the function call.

annachester avatar Mar 31 '24 11:03 annachester

yes you can basically add , is_causal: bool = None or , **kwargs at the end of forward pass for TransformerBatchNormEncoderLayer

geetu040 avatar Jul 20 '24 19:07 geetu040

I solved it by adding "**kwargs" to the forward() function in the TransformerBatchNormEncoderLayer class.. this solves the issue that the argument 'is_casual' is no longer expected in the function call.

this resolved the issue.

valentin-fngr avatar Jul 29 '24 20:07 valentin-fngr