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

Calculate gradient in Partial information setting #14

Open
liuzhidanhhh opened this issue Jan 20, 2020 · 0 comments
Open

Calculate gradient in Partial information setting #14

liuzhidanhhh opened this issue Jan 20, 2020 · 0 comments

Comments

@liuzhidanhhh
Copy link

Hi,
When I run this code to make an adversarial examples in Partial information setting, I an confused by a problem:
the function of partial_info_loss has no difference with the function standard_loss.
The code of line 125 to line 130 doesn't play an role on selecting topK logit and noise, because good_image is euqal to range(batch_size) . When i delete those lines, I got the same attack result.
If the function of partial_info_loss did not select topK logit, how this algorithm calculate gradient in this setting?

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

1 participant