cleverhans/future/torch/attacks/fast_gradient_method.py
Killed 0 out of 2 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 178
--- cleverhans/future/torch/attacks/fast_gradient_method.py
+++ cleverhans/future/torch/attacks/fast_gradient_method.py
@@ -6,7 +6,7 @@
def fast_gradient_method(model_fn, x, eps, norm,
- clip_min=None, clip_max=None, y=None, targeted=False, sanity_checks=False):
+ clip_min=None, clip_max=None, y=None, targeted=True, sanity_checks=False):
"""
PyTorch implementation of the Fast Gradient Method.
:param model_fn: a callable that takes an input tensor and returns the model logits.
Mutant 179
--- cleverhans/future/torch/attacks/fast_gradient_method.py
+++ cleverhans/future/torch/attacks/fast_gradient_method.py
@@ -6,7 +6,7 @@
def fast_gradient_method(model_fn, x, eps, norm,
- clip_min=None, clip_max=None, y=None, targeted=False, sanity_checks=False):
+ clip_min=None, clip_max=None, y=None, targeted=False, sanity_checks=True):
"""
PyTorch implementation of the Fast Gradient Method.
:param model_fn: a callable that takes an input tensor and returns the model logits.