Skip to content

Commit 2920cf5

Browse files
committed
removed extra copy
1 parent 8be52c9 commit 2920cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

art/attacks/carlini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def generate(self, x, **kwargs):
193193
:return: An array holding the adversarial examples.
194194
:rtype: `np.ndarray`
195195
"""
196-
x_adv = x.copy().astype(NUMPY_DTYPE)
196+
x_adv = x.astype(NUMPY_DTYPE)
197197
(clip_min, clip_max) = self.classifier.clip_values
198198

199199
# Parse and save attack-specific parameters

0 commit comments

Comments
 (0)