Open aknirala opened 2 years ago
@aknirala the zero_gradients
is used in the old version of PyTorch. The new version of PyTorch delete the function zero_gradients
from torch.autograd.gradcheck
.
You can delete the code line of zero_gradients(x)
or
just delete from adversarial_defense.feature_scatter.attack_methods import Attack_FeaScatter
and the corresponding code.
On running command like:
!python tangent_attack_hemisphere/attack.py --gpu 0 --norm l2 --dataset CIFAR-10 --arch resnet-50
I get:
On colab I am not able to successfully install requirements.txt, but was hoping it would work.