We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 Traceback (most recent call last) in 2 d_k = 16 3 n_heads = 6 ----> 4 w_q = Linear([d_model, d_k * n_heads]) 5 w_q
TypeError: init() missing 1 required positional argument: 'out_features'
thx for your sharing, but I raise this error, can you give me some advice?
The text was updated successfully, but these errors were encountered:
i have the same question with, have you solved this question?
Sorry, something went wrong.
i've got the same error
Module 'Linear' needs two parameters instead of type 'list' : w_q = Linear([d_model, d_k * n_heads]) ----> w_q = Linear(d_model, d_k * n_heads)
No branches or pull requests
self.w_q = Linear([d_model, d_k * n_heads])
TypeError Traceback (most recent call last)
in
2 d_k = 16
3 n_heads = 6
----> 4 w_q = Linear([d_model, d_k * n_heads])
5 w_q
TypeError: init() missing 1 required positional argument: 'out_features'
thx for your sharing, but I raise this error, can you give me some advice?
The text was updated successfully, but these errors were encountered: