From 0d9482b63d5eced950cd00392e89201bdb47e1c2 Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Tue, 7 Feb 2023 07:02:06 +0000 Subject: [PATCH] fix: remove additional line --- torchattack/vnifgsm.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/torchattack/vnifgsm.py b/torchattack/vnifgsm.py index 7643177..05b159d 100644 --- a/torchattack/vnifgsm.py +++ b/torchattack/vnifgsm.py @@ -126,8 +126,6 @@ def forward(self, x: torch.Tensor, y: torch.Tensor) -> torch.Tensor: gv_grad += neighbors.grad - gv_grad += neighbors.grad - # Accumulate gradient variance into v v = gv_grad / self.n - delta_grad