Skip to content

Commit 1ea0fb3

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

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
@@ -202,7 +202,7 @@ def __getitem__(self, idx):
202202

203203
#########################
204204
#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 80/20
205-
#split but the torch.utils.data has more useful utilities. Here we specify a generator since we need to use the
205+
# split but the ``torch.utils.data`` has more useful utilities. Here we specify a generator since we need to use the
206206
#same device as torch defaults to above.
207207

208208
train_set, test_set = torch.utils.data.random_split(alldata, [.85, .15], generator=torch.Generator(device=device).manual_seed(2024))

0 commit comments

Comments
 (0)