How to train a simple linear regression model with SGD in pytorch successfully?

Why is mdl.forward(batch_xs) a bug? What incorrect behaviour could it result in?

1 Like