-
Notifications
You must be signed in to change notification settings - Fork 55
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
InvalidArgumentError: attack from SpsaWithRandomSpatialAttack #67
Comments
Everything is fine with running the demo. But the error rises when it runs my own algorithm. The following is the traceback of error:
Thank you. |
The error looks like it's happening from within CleverHans. Can you try running SPSA against your model from within cleverhans to see if you get the same error? |
@carlini Thank you so much for your kind reply. The default defense |
You can look here to see how we do it Basically: create the SPSA class, and call |
@carlini Hi, sorry for the late reply. I try to follow your instructions, and change the codes to the following:
Everything seems fine when running with it. Do you think is it because of the implementation of my model using PyTorch? |
Calling generate will only create the graph, not actually run it -- can you try with |
@carlini Dear Mr, Carlini, I am still struggling with the code. I tried the following:
But it raises another error:
It is really hard for me after so much effort. If it is possible, would you mind providing some snippets that I can work from? Thank you so much. |
I got an error when running the attacks from SpsaWithRandomSpatialAttack:
The text was updated successfully, but these errors were encountered: