There is the following issue on this page: https://docs.pytorch.org/tutorials/beginner/examples_autograd/polynomial_autograd.html
The paratext and previous/subsequent excercises imply this should learn sin(x), but the y= is generated as torch.exp(x), with the exponential's Taylor expantion.