Open baoxin1100 opened 4 years ago
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)
self.w_q = Linear([d_model, d_k * n_heads])
TypeError Traceback (most recent call last)