cleverhans/future/torch/attacks/fast_gradient_method.py

Killed 0 out of 2 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 31

--- 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 32

--- 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.