Skip to content

Commit f56993b

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

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
@@ -203,7 +203,7 @@ def __getitem__(self, idx):
203203
#########################
204204
#Using the dataset object allows us to easily split the data into train and test sets. Here we create a 80/20
205205
# split but the ``torch.utils.data`` has more useful utilities. Here we specify a generator since we need to use the
206-
#same device as torch defaults to above.
206+
#same device as PyTorch 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))
209209

0 commit comments

Comments
 (0)