Open PhilipGAQ opened 1 year ago
原文使用 images,labels=dataiter.next() 出现报错: AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next' 应更正为 images, labels = next(dataiter)
images,labels=dataiter.next()
AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next'
images, labels = next(dataiter)
没错,估计是库的更新导致的,修改为next(dataiter)后能正常运行
原文使用
images,labels=dataiter.next()
出现报错:AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next'
应更正为images, labels = next(dataiter)