spro / practical-pytorch

Go to https://github.com/pytorch/tutorials - this repo is deprecated and no longer maintained
MIT License
4.51k stars 1.1k forks source link

char rnn classification activation #110

Open siddBanPsu opened 5 years ago

siddBanPsu commented 5 years ago

In the RNN code here: https://pytorch.org/tutorials/intermediate/char_rnn_classification_tutorial.html,

self.i2h = nn.Linear(input_size + hidden_size, hidden_size)
self.i2o = nn.Linear(input_size + hidden_size, output_size)

there seem to be no activation present, tanh or Relu as is normally seen in RNN's. Why was it done like this for this example?