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

How to accelerate attack speed? #3

Open
machanic opened this issue Jan 9, 2021 · 1 comment
Open

How to accelerate attack speed? #3

machanic opened this issue Jan 9, 2021 · 1 comment

Comments

@machanic
Copy link

machanic commented Jan 9, 2021

I found it is too slow when I attack a large network in CIFAR-10 dataset. Because my experiments need attacking 1000 images. It will take 1 month!
I found the reason is that you feed only 1 image to network every time. (in def _eval_sample)
Can this code modify to batch image feed version to boost speed?
We first collect a batch of candidate, stats = candidate_future.result() into a block-queue, and then batch feed to network?
What about this proposal? What do you suggest?

@machanic
Copy link
Author

Oh, no! I found the candidate and eval_sample returned value are depended on each other.

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