Skip to content

Commit

Permalink
[Feature] Add all implemented loggers to the init of loggers (pytorch…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fridolin Linder authored Sep 9, 2022
1 parent 3bdae23 commit b8c0cde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

try:
from tensorboard.backend.event_processing import event_accumulator
from torchrl.trainers.loggers import TensorboardLogger
from torchrl.trainers.loggers.tensorboard import TensorboardLogger

_has_tb = True
except ImportError:
Expand Down Expand Up @@ -242,6 +242,7 @@ def test_recorder():
args.record_frames = 24 // args.frame_skip
args.record_interval = 2
args.catframes = 4
args.collector_devices = ["cpu"]

N = 8

Expand Down
3 changes: 3 additions & 0 deletions torchrl/trainers/loggers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
# LICENSE file in the root directory of this source tree.

from .common import Logger
from .csv import CSVLogger
from .tensorboard import TensorboardLogger
from .wandb import WandbLogger

0 comments on commit b8c0cde

Please sign in to comment.