Skip to content

Commit d9e791d

Browse files
remove tensorboard argument fro m the attack class
regenerate the notebook Signed-off-by: mateuszGorczany <[email protected]>
1 parent b27723e commit d9e791d

File tree

2 files changed

+62
-67
lines changed

2 files changed

+62
-67
lines changed

art/attacks/evasion/laser_attack/laser_attack.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def __init__(
6363
image_generator: ImageGenerator = ImageGenerator(),
6464
random_initializations: int = 1,
6565
optimisation_algorithm: Callable = greedy_search,
66-
tensor_board: Union[str, bool] = False,
6766
debug: Optional[DebugInfo] = None,
6867
) -> None:
6968
"""
@@ -73,15 +72,10 @@ def __init__(
7372
:param image_generator: Object responsible for image generation.
7473
:param random_initializations: How many times repeat the attack.
7574
:param optimisation_algorithm: Algorithm used to generate adversarial example. May be replaced.
76-
:param tensor_board: Activate summary writer for TensorBoard: Default is `False` and deactivated summary writer.
77-
If `True` save runs/CURRENT_DATETIME_HOSTNAME in current directory. Provide `path` in type
78-
`str` to save in path/CURRENT_DATETIME_HOSTNAME.
79-
Use hierarchical folder structure to compare between runs easily. e.g. pass in ‘runs/exp1’,
80-
‘runs/exp2’, etc. for each new experiment to compare across them.
8175
:param debug: Optional debug handler.
8276
"""
8377

84-
super().__init__(estimator=estimator, tensor_board=tensor_board)
78+
super().__init__(estimator=estimator)
8579
self.iterations = iterations
8680
self.random_initializations = random_initializations
8781
self.optimisation_algorithm = optimisation_algorithm
@@ -375,7 +369,6 @@ def __init__(
375369
min_laser_beam: Union[LaserBeam, Tuple[float, float, float, int]] = (380.0, 0.0, 1.0, 1),
376370
random_initializations: int = 1,
377371
image_generator: ImageGenerator = ImageGenerator(),
378-
tensor_board: Union[str, bool] = False,
379372
debug: Optional[DebugInfo] = None,
380373
) -> None:
381374
"""
@@ -387,11 +380,6 @@ def __init__(
387380
of the laser parameters.
388381
:param image_generator: Object responsible for image generation.
389382
:param random_initializations: How many times repeat the attack.
390-
:param tensor_board: Activate summary writer for TensorBoard: Default is `False` and deactivated summary writer.
391-
If `True` save runs/CURRENT_DATETIME_HOSTNAME in current directory. Provide `path` in type
392-
`str` to save in path/CURRENT_DATETIME_HOSTNAME.
393-
Use hierarchical folder structure to compare between runs easily. e.g. pass in ‘runs/exp1’,
394-
‘runs/exp2’, etc. for each new experiment to compare across them.
395383
:param debug: Optional debug handler.
396384
"""
397385

@@ -410,6 +398,5 @@ def __init__(
410398
LaserBeamGenerator(min_laser_beam_obj, max_laser_beam_obj),
411399
image_generator=image_generator,
412400
random_initializations=random_initializations,
413-
tensor_board=tensor_board,
414401
debug=debug,
415402
)

0 commit comments

Comments
 (0)