Skip to content

Commit 4aa6595

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

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
@@ -225,7 +225,7 @@ def __getitem__(self, idx):
225225
# as regular feed-forward layers.
226226
#
227227
# This CharRNN class implements an RNN with three components.
228-
# First, we use the `nn.RNN implementation <https://pytorch.org/docs/stable/generated/torch.nn.RNN.html>`__
228+
# 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. 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().

0 commit comments

Comments
 (0)