Closed
Description
tutorials/beginner_source/nn_tutorial.py
Line 776 in 796013c
There is no need to call
iter
in this line and that is misleading. Internally, by calling iter
an _BaseDataLoaderIter
instance is returned. Then in the for
loop, again iter
is called by the interpreter and the same instance is returned. So there is no need to that call.
cc @suraj813