Skip to content

Commit fe01b65

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

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
@@ -227,7 +227,7 @@ def __getitem__(self, idx):
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>`__.
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``
230-
# leads to a significant improvement in performance (e.g. cuDNN-accelerated kernals) versus implementing
230+
# leads to a significant improvement in performance, such as cuDNN-accelerated kernels, versus implementing
231231
# each layer as a nn.Linear. It also simplifies the implementation in forward().
232232
#
233233

0 commit comments

Comments
 (0)