Skip to content

AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next' #9

@Taiga10969

Description

@Taiga10969

11_cnn_pytorch/02_cam.ipynb
CNNの可視化 (Class Activation Mapping; CAM)について
Google Colaboratoryで実行したところ,以下のエラーが出ました.

AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next'

images, labels = dataiter.next()を以下に変更することで解決しました.
images, labels = next(dataiter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions