Skip to content

Commit c2cca94

Browse files
mgs28svekars
andauthored
Update intermediate_source/char_rnn_classification_tutorial.py
Co-authored-by: Svetlana Karslioglu <[email protected]>
1 parent 4aa6595 commit c2cca94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/char_rnn_classification_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def __getitem__(self, idx):
226226
#
227227
# This CharRNN class implements an RNN with three components.
228228
# First, we use the `nn.RNN implementation <https://pytorch.org/docs/stable/generated/torch.nn.RNN.html>`__.
229-
# , next we define a layer that maps the RNN hidden layers to our output and finally we apply a softmax. Using nn.RNN
229+
# Next, we define a layer that maps the RNN hidden layers to our output. And finally, we apply a ``softmax`` function. Using ``nn.RNN``
230230
# leads to a significant improvement in performance (e.g. cuDNN-accelerated kernals) versus implementing
231231
# each layer as a nn.Linear. It also simplifies the implementation in forward().
232232
#

0 commit comments

Comments
 (0)