seanie12/CLAPS

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

yxding95 opened this issue · 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!