transformer
transformer copied to clipboard
error in Linear
self.w_q = Linear([d_model, d_k * n_heads])
TypeError Traceback (most recent call last)
TypeError: init() missing 1 required positional argument: 'out_features'
thx for your sharing, but I raise this error, can you give me some advice?
i have the same question with, have you solved this question?
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)