Skip to content

Commit

Permalink
fix: remove additional line
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Feb 7, 2023
1 parent 07d4889 commit 0d9482b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torchattack/vnifgsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0d9482b

Please sign in to comment.