Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tutorials/01-basics/pytorch_basics/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
data_iter = iter(train_loader)

# Mini-batch images and labels.
images, labels = data_iter.next()
images, labels = next(data_iter)

# Actual usage of the data loader is as below.
for images, labels in train_loader:
Expand Down