Skip to content

Commit

Permalink
intro to pytorch: Part 2, next() is not a method
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimPushtaev committed Feb 28, 2023
1 parent c9404fc commit 59f4d56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
],
"source": [
"dataiter = iter(trainloader)\n",
"images, labels = dataiter.next()\n",
"images, labels = next(dataiter)\n",
"print(type(images))\n",
"print(images.shape)\n",
"print(labels.shape)"
Expand Down

0 comments on commit 59f4d56

Please sign in to comment.