Solved by albanD in post #2 
              
              
                Hi, 
You can check the doc for F.linear here: the weights should be passed one after the other, not as a tuple of two Tensors.