Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edmundang1994 opened this issue Feb 23, 2021 · 1 comment

Comments

@edmundang1994
Copy link

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!!

@L-Heidrich
Copy link

having the same issue. Any solution yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants