Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Mar 29, 2022
1 parent 03e932b commit 7f9e973
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tianshou/utils/logger/tensorboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class TensorboardLogger(BaseLogger):
:param int update_interval: the log interval in log_update_data(). Default to 1000.
:param int save_interval: the save interval in save_data(). Default to 1 (save at
the end of each epoch).
:param bool write_flush: whether to flush tensorboard result after each "add_*"
operation. Default to True.
:param bool write_flush: whether to flush tensorboard result after each
add_scalar operation. Default to True.
"""

def __init__(
Expand All @@ -28,7 +28,7 @@ def __init__(
test_interval: int = 1,
update_interval: int = 1000,
save_interval: int = 1,
write_flush: bool = True
write_flush: bool = True,
) -> None:
super().__init__(train_interval, test_interval, update_interval)
self.save_interval = save_interval
Expand Down
4 changes: 2 additions & 2 deletions tianshou/utils/logger/wandb.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class WandbLogger(BaseLogger):
Default to 1000.
:param int save_interval: the save interval in save_data(). Default to 1 (save at
the end of each epoch).
:param bool write_flush: whether to flush tensorboard result after each "add_*"
operation. Default to True.
:param bool write_flush: whether to flush tensorboard result after each
add_scalar operation. Default to True.
:param str project: W&B project name. Default to "tianshou".
:param str name: W&B run name. Default to None. If None, random name is assigned.
:param str entity: W&B team/organization name. Default to None.
Expand Down

0 comments on commit 7f9e973

Please sign in to comment.