Did you wrap your linear layer in nn.DataParallel as well?
Since you are just using an nn.Linear module, the input sizes won’t be printed, which is defined in the original forward method.
Let me know, if I misunderstood your question or what your confusion is about.