hunkim / PyTorchZeroToAll

Simple PyTorch Tutorials Zero to ALL!
http://bit.ly/PyTorchZeroAll
3.89k stars 1.2k forks source link

L1 basic file #17

Closed allanj closed 6 years ago

allanj commented 6 years ago

In the basic file: https://github.com/hunkim/PyTorchZeroToAll/blob/master/01_basics.py @49cab2b

Isn't line 27 should be loss(y_pred_val, y_val)

allanj commented 6 years ago

I just realize the loss already has the forward pass