forked from pytorch/captum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Attack Comparator Metric (pytorch#699)
Summary: Pull Request resolved: pytorch#699 Add Attack Comparator metric as a robustness metrics to work with Captum perturbations as well as arbitrary transformations such as torchvision transforms. Also adds support for summarizers / metrics to take floats as well as tensors. Differential Revision: D29122998 fbshipit-source-id: 4abecdb1e5f4681f6c4406dbcacc07f95f821ffd
- Loading branch information
1 parent
e2f7f8c
commit 6a86a3e
Showing
5 changed files
with
674 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from captum.robust._core.fgsm import FGSM # noqa | ||
from captum.robust._core.metrics.attack_comparator import AttackComparator # noqa | ||
from captum.robust._core.perturbation import Perturbation # noqa | ||
from captum.robust._core.pgd import PGD # noqa |
Oops, something went wrong.