Update 7/8/2019: Upgraded to PyTorch version 1.0. Removed now-deprecated Variable framework Update 8/4/2020: Added missing optimizer.zero_grad() call. Reformatted code with black Hey, remember when I wrote those ungodly long posts about matrix factorization chock-full of gory math? Good news! You can forget it all. We have now entered the Era of Deep Learning, and automatic differentiation shall be our guiding light. Less facetiously, I have finally spent some time checking out these new-fang...