Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rkodja
Comment options

@rkodja
Comment options

Answer selected by mrdbourke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants