Skip to content

Commit 4edfea0

Browse files
author
Beat Buesser
committed
Update parameter check
Signed-off-by: Beat Buesser <[email protected]>
1 parent 66da472 commit 4edfea0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

art/attacks/poisoning/bullseye_polytope_attack.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ def _check_params(self) -> None:
294294
if isinstance(self.feature_layer, int):
295295
if not 0 <= self.feature_layer < len(self.estimator.layer_names):
296296
raise ValueError("feature_layer is not positive integer")
297-
if not isinstance(self.feature_layer, str):
298-
raise ValueError("feature_layer has to be either an integer or a string.")
299297

300298
if 1 < self.decay_coeff < 0:
301299
raise ValueError("Decay coefficient must be between zero and one")

0 commit comments

Comments
 (0)