This issue exists because this line:
from advertorch.attacks.utils import zero_gradients
which refers to the zero_gradients function in PyTorch is obsolete.
This is because zero_gradients is removed from PyTorch 1.9. It was present until PyTorch 1.7.
This issue exists because this line:
from advertorch.attacks.utils import zero_gradientswhich refers to the
zero_gradientsfunction in PyTorch is obsolete.This is because
zero_gradientsis removed from PyTorch 1.9. It was present until PyTorch 1.7.