Skip to content

ch1训练一个分类器一节中iter的next()用法有误 #140

Open
@PhilipGAQ

Description

@PhilipGAQ

原文使用
images,labels=dataiter.next()
出现报错:
AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next'
应更正为
images, labels = next(dataiter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions