Skip to content

Commit

Permalink
Remove set_return_type in lgv.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rikonaka committed Jul 24, 2023
1 parent c8b84e2 commit 5dcecfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchattacks/wrappers/lgv.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def forward(self, images, labels):
else:
raise NotImplementedError('Targeted attack mode not supported by LGV.')
# set return type to base attack
self.base_attack.set_return_type(self.return_type)
# self.base_attack.set_return_type(self.return_type)

adv_images = self.base_attack(images, labels)
return adv_images
Expand Down

0 comments on commit 5dcecfc

Please sign in to comment.