hey,
I’m learning PyTorch and just stumbled upon this in the official tutorial on RNN
(https://pytorch.org/tutorials/intermediate/char_rnn_classification_tutorial.html# 19):
the parameter update is encoded in the train function manually, while in the older version of this tutorial on Sean’s github
(https://github.com/spro/practical-pytorch/blob/master/char-rnn-classification/char-rnn-classification.ipynb 6)
the optimizer is defined in the usual way and the update is done by calling optimizer.step().
I haven’t found any comments on that in the tutorial. So why manual instead of optimizer?