82cf0c88e76baf6efa5d94021c42e6d16af2675a,foolbox/attacks/fast_gradient_method.py,L2FastGradientAttack,run,#L2FastGradientAttack#,51
Before Change
epsilon: float,
**kwargs: Any,
) -> T:
if isinstance(criterion, TargetedMisclassification):
raise ValueError("unsupported criterion")
return super().run(
After Change
epsilon: float,
**kwargs: Any,
) -> T:
if not hasattr(criterion, "target_classes"):
raise ValueError("unsupported criterion")
return super().run(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: bethgelab/foolbox
Commit Name: 82cf0c88e76baf6efa5d94021c42e6d16af2675a
Time: 2020-09-23
Author: rzrolandzimmermann@gmail.com
File Name: foolbox/attacks/fast_gradient_method.py
Class Name: L2FastGradientAttack
Method Name: run
Project Name: bethgelab/foolbox
Commit Name: 82cf0c88e76baf6efa5d94021c42e6d16af2675a
Time: 2020-09-23
Author: rzrolandzimmermann@gmail.com
File Name: foolbox/attacks/fast_gradient_method.py
Class Name: L1FastGradientAttack
Method Name: run
Project Name: bethgelab/foolbox
Commit Name: 82cf0c88e76baf6efa5d94021c42e6d16af2675a
Time: 2020-09-23
Author: rzrolandzimmermann@gmail.com
File Name: foolbox/attacks/fast_gradient_method.py
Class Name: LinfFastGradientAttack
Method Name: run