705d7ff759a0b76ddf1b30ab8ef135c0b67efa8b,art/attacks/evasion/projected_gradient_descent/projected_gradient_descent_pytorch.py,ProjectedGradientDescentPytorch,generate,#ProjectedGradientDescentPytorch#Any#Any#,123
Before Change
else:
targets = y
inputs = torch.from_numpy(x).to(self.classifier._device)
targets = torch.from_numpy(targets.astype(float)).to(self.classifier._device)
// TODO
// if self.random_eps:
After Change
mask = kwargs.get("mask")
if mask is not None:
// Ensure the mask is broadcastable
if len(mask.shape) > len(x.shape) or mask.shape != x.shape[-len(mask.shape):]:
raise ValueError("Mask shape must be broadcastable to input shape.")
adv_x_best = None
rate_best = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 705d7ff759a0b76ddf1b30ab8ef135c0b67efa8b
Time: 2020-04-23
Author: M.N.Tran@ibm.com
File Name: art/attacks/evasion/projected_gradient_descent/projected_gradient_descent_pytorch.py
Class Name: ProjectedGradientDescentPytorch
Method Name: generate
Project Name: arraiy/torchgeometry
Commit Name: a828315185a9dc8b21ec8e5dbead9044caf0d3a2
Time: 2020-12-22
Author: sj8716643@126.com
File Name: kornia/geometry/transform/imgwarp.py
Class Name:
Method Name: get_rotation_matrix2d
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 3bf391c2315bcec722961a2f4a093d1c516dbb10
Time: 2018-08-29
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/classifiers/pytorch.py
Class Name: PyTorchClassifier
Method Name: __init__