Skip to content

mnist_tutorial_fgsm.py IndexError: index 4 is out of bounds for axis 0 with size 1 #70

@edmundang1994

Description

@edmundang1994

Hi, I was trying out the tutorial from paddle.md. I have managed to trained with mnist_model.py, but can't perform the attack. It kept prompting the

IndexError: index 4 is out of bounds for axis 0 with size 1

image

The only change I added before facing the above issue was to the mnist_tutorial_fgsm.py is paddle.enable_static() at line 44.
image

Please help!!

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