The Towards Data Science link referencing momentum seems to be broken in the autograd tutorial (A Gentle Introduction to torch.autograd — PyTorch Tutorials 2.7.0+cu126 documentation)
The article is instead linked to “Solving Two-Stage Stochastic Programs in Gurobi”