Skip to content

Commit

Permalink
Update art/attacks/evasion/sign_opt.py
Browse files Browse the repository at this point in the history
Co-authored-by: Beat Buesser <49047826+beat-buesser@users.noreply.github.com>
  • Loading branch information
synergit and beat-buesser committed Jun 15, 2022
1 parent c5b835f commit 4668f50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions art/attacks/evasion/sign_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def __init__(
def generate(self, x: np.ndarray, y: Optional[np.ndarray] = None, **kwargs) -> np.ndarray:
"""
Generate adversarial samples and return them in an array.
:param x: An array with the original inputs to be attacked.
:param y: Target values (class labels) one-hot-encoded of
shape (nb_samples, nb_classes) or indices of shape
Expand Down

0 comments on commit 4668f50

Please sign in to comment.