Skip to content

Commit 2b71848

Browse files
author
Beat Buesser
committed
Update Black format
Signed-off-by: Beat Buesser <[email protected]>
1 parent d6430ce commit 2b71848

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

art/attacks/evasion/feature_adversaries/feature_adversaries_tensorflow.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ def loss_fn(source_orig, source_adv, guide):
122122
guide_representation = self.estimator.get_activations(guide, layer_i, self.batch_size, True)
123123

124124
axis = tuple(range(1, len(source_adv.shape)))
125-
soft_constraint = tf.cast(
126-
tf.math.reduce_max(tf.abs(source_adv - source_orig), axis=axis), tf.float32
127-
)
125+
soft_constraint = tf.cast(tf.math.reduce_max(tf.abs(source_adv - source_orig), axis=axis), tf.float32)
128126

129127
axis = tuple(range(1, len(adv_representation.shape)))
130128
representation_loss += tf.reduce_sum(tf.square(adv_representation - guide_representation), axis=axis)

0 commit comments

Comments
 (0)