Skip to content

Commit

Permalink
Update intermediate_source/char_rnn_classification_tutorial.py
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Schlosser <[email protected]>
  • Loading branch information
mgs28 and jbschlosser authored Sep 24, 2024
1 parent d9d81a1 commit 8258deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intermediate_source/char_rnn_classification_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def __getitem__(self, idx):
# as regular feed-forward layers.
#
# This CharRNN class implements an RNN with three components.
# First, we use the `nn.RNN implemnentation <https://pytorch.org/docs/stable/generated/torch.nn.RNN.html>`__
# First, we use the `nn.RNN implementation <https://pytorch.org/docs/stable/generated/torch.nn.RNN.html>`__
# , next we define a layer that maps the RNN hidden layers to our output and finally we apply a softmax. Using nn.RNN
# leads to a significant improvement in performance (e.g. cuDNN-accelerated kernals) versus implementing
# each layer as a nn.Linear. It also simplifies the implementation in forward().
Expand Down

0 comments on commit 8258deb

Please sign in to comment.