We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 202cb2e commit 3252ef1Copy full SHA for 3252ef1
art/attacks/configurable_text_attack.py
@@ -21,7 +21,7 @@ def __call__(self, classifier, x, y):
21
batch_x = np.expand_dims(x, axis=0)
22
x_embed = classifier.to_embedding(batch_x)
23
x_embed_adv = x_embed + self.eps * classifier.loss_gradient(batch_x, np.expand_dims(y, axis=0))[0]
24
- return x_embed_adv
+ return x_embed_adv[0]
25
26
27
class TemporalHeadScore:
0 commit comments