Skip to content

Fix a bug in universal attack. - #154

Merged
YaxinLi0-0 merged 4 commits into
DSE-MSU:masterfrom
HelloWorldLTY:master
Apr 4, 2024
Merged

YaxinLi0-0 merged 4 commits into
DSE-MSU:masterfrom
HelloWorldLTY:master

Conversation

@HelloWorldLTY

Copy link
Copy Markdown
Contributor

I found a bug in the original implementation of universal attack, that is, a undefined variable was referred before.

Moreover, I also found that torch.autograd dropped the function of zero_gradients, so I also replace it with a new function.

Could you please review it and give some feedback? Thanks.

@YaxinLi0-0 YaxinLi0-0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it is num_images = len(dataloader), where dataloader is a list of images and corresponding labels.

@YaxinLi0-0
YaxinLi0-0 merged commit baa552c into DSE-MSU:master Apr 4, 2024
@HelloWorldLTY

Copy link
Copy Markdown
Contributor Author

I see, thanks.

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

Successfully merging this pull request may close these issues.

2 participants