turn broken imports of jsma_batch into NotImplementedError
@@ -79,7 +79,8 @@ class SaliencyMapMethod(Attack):
else:
assert self.sess is not None, \
'Cannot use `generate` when no `sess` was provided'
- from cleverhans.attacks_tf import jacobian_graph, jsma_batch
+ from cleverhans.attacks_tf import jacobian_graph
+
# Define Jacobian graph wrt to this input placeholder
preds = self.model.get_probs(x)
@@ -161,3 +162,6 @@ class SaliencyMapMethod(Attack):
"2019-04-26.")
return True
+
+def jsma_batch(*args, **kwargs):
+ raise NotImplementedError("The jsma_batch function has been removed. Any code that depends on it should be revised.")
