karpathy / ng-video-lecture

3.57k stars 930 forks source link

removes unnecessary duplicate variable #7

Open hoosha opened 1 year ago

hoosha commented 1 year ago

It seems m=model.to(device) creates a duplicate pointer to the model that is not needed. Just to make it simpler and clearer. :)

gustavdelius commented 1 year ago

Thank you @hoosha , I did indeed find it confusing that there was both m and model and I was wondering whether there was a difference. Your pull request makes it clear.