In the pytorch word language model 3 example, the RNN model class explicitly defined a function ‘init_hidden’ which assigns zero tensors. This function is then called in the main script before starting each epoch of training.
However in the SNPI 4 example this init_hidden state is not defined in the model and nor are the hidden states zeroed before each epoch of training.
Can I confirm this is because in the latter newer example utilised auto initialisation of the hidden states (to zeros)?