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.