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

error in Linear #10

Open
baoxin1100 opened this issue Mar 9, 2020 · 3 comments
Open

error in Linear #10

baoxin1100 opened this issue Mar 9, 2020 · 3 comments

Comments

@baoxin1100
Copy link

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?

@loveaguai
Copy link

i have the same question with, have you solved this question?

@RuYunW
Copy link

RuYunW commented Jun 26, 2020

i've got the same error

@Tuberose-DC
Copy link

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)

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

4 participants