I’d like to learn how to use SGD. But I have not found a minimal working example. It must be a piece of code working on its own. And it should be minimal in the sense that anything that can be deleted without affecting the usage of SGD should be deleted.
By this definition, the example at http://pytorch.org/docs/master/optim.html 204 is not working.
The example at the following URL is not minimal.
http://pytorch.org/tutorials/beginner/nlp/deep_learning_tutorial.html#optimization-and-training 103
Could anybody show a MWE? Thanks.