Skip to content

Commit 0702a64

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

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
@@ -228,7 +228,7 @@ def __getitem__(self, idx):
228228
# First, we use the `nn.RNN implementation <https://pytorch.org/docs/stable/generated/torch.nn.RNN.html>`__.
229229
# 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, such as cuDNN-accelerated kernels, versus implementing
231-
# each layer as a nn.Linear. It also simplifies the implementation in forward().
231+
# each layer as a ``nn.Linear``. It also simplifies the implementation in ``forward()``.
232232
#
233233

234234
import torch.nn as nn

0 commit comments

Comments
 (0)