Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zqxyus opened this issue Mar 20, 2024 · 6 comments
Open

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

zqxyus opened this issue Mar 20, 2024 · 6 comments

Comments

@zqxyus
Copy link

zqxyus commented Mar 20, 2024

No description provided.

@zqxyus
Copy link
Author

zqxyus commented Mar 20, 2024

when i tried use mvts_transformer to SpokenArabicDigits , the error occurred

@annachester
Copy link

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

@annachester
Copy link

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.

@geetu040
Copy link

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

@valentin-fngr
Copy link

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.

@Laplaceca
Copy link

maybe you could use torch==1.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants