Question: what is nn.linear in pytorch?
Answer: CLASS torch.nn.Linear(in_features, out_features, bias=True) Applies a linear transformation to the incoming data: y = x*W^T + b. Parameters: in_features – size of each input sample (i.e. size of x) out_features – size of each output sample (i.e. size of y)