-
In time match to 8:01:40
I want to know why you use next. |
Beta Was this translation helpful? Give feedback.
Answered by
mrdbourke
Aug 4, 2022
Replies: 1 comment 2 replies
-
Hey @aly202012,
I do this to get a single parameter from the model parameters and check its device. You can try running it without |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mrdbourke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @aly202012,
next()
= to take a "next step" in an iterator (see here: https://www.w3schools.com/python/ref_func_next.asp).I do this to get a single parameter from the model parameters and check its device.
You can try running it without
next()
and see what happens.