AdvBox icon indicating copy to clipboard operation
AdvBox copied to clipboard

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

Open edmundang1994 opened this issue 4 years ago • 1 comments

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

edmundang1994 avatar Feb 23 '21 07:02 edmundang1994

having the same issue. Any solution yet?

L-Heidrich avatar Apr 29 '21 13:04 L-Heidrich