Thanks a lot. But if I use F.linear(x, W)
Should I define the W as a Parameter or a Variable?
If I define it as a Parameter, when I do the tying/transpose to use it to replace embedding mod’s weight:
Emdmod.weight = W.t()
The transposed thing will no longer be a Parameter but become a Variable, and the problem still exists.