TypeError: iter() returned non-iterator of type 再重写pytorch的dataloader的next函数时,报错TypeError: iter() returned non-iterator of type,原因是我是用的是python3,next()函数的的复写改为了___next__(), 用python2 写next()就没有问题了