Skip to content

Commit 9b7e430

Browse files
jangdanholly1238
andauthored
Fix capitalization for the word "DataLoader" (pytorch#1599)
Change all instances of the word "Dataloader" to "DataLoader" in data_tutorial.py Co-authored-by: Holly Sweeney <[email protected]>
1 parent eccfa14 commit 9b7e430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beginner_source/basics/data_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
`Optimization <optimization_tutorial.html>`_ ||
1010
`Save & Load Model <saveloadrun_tutorial.html>`_
1111
12-
Datasets & Dataloaders
12+
Datasets & DataLoaders
1313
===================
1414
1515
"""
@@ -222,7 +222,7 @@ def __getitem__(self, idx):
222222
# Iterate through the DataLoader
223223
# --------------------------
224224
#
225-
# We have loaded that dataset into the ``Dataloader`` and can iterate through the dataset as needed.
225+
# We have loaded that dataset into the ``DataLoader`` and can iterate through the dataset as needed.
226226
# Each iteration below returns a batch of ``train_features`` and ``train_labels`` (containing ``batch_size=64`` features and labels respectively).
227227
# Because we specified ``shuffle=True``, after we iterate over all batches the data is shuffled (for finer-grained control over
228228
# the data loading order, take a look at `Samplers <https://pytorch.org/docs/stable/data.html#data-loading-order-and-sampler>`_).

0 commit comments

Comments
 (0)