CLAPS icon indicating copy to clipboard operation
CLAPS copied to clipboard

Question about the self.zero_grad() in function generate_adv() but not in generate_cont_adv()

Open yxding95 opened this issue 2 years ago • 0 comments

Hello seanie,

I'm very interested with your "ADVERSARIAL PERTURBATIONS", but i'm not very sure about the influence of self.zero_grad() in the functions of models.py. May I ask about why it is in generate_adv() but not in generate_cont_adv()? Hope for your response! Thanks very much!

yxding95 avatar Mar 04 '22 14:03 yxding95