Skip to content

Commit 08a6a25

Browse files
committed
updated docs
1 parent 48bc346 commit 08a6a25

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/Trainer/Logging.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ Trainer(experiment=exp)
5252

5353
---
5454
### Tensorboard support
55+
In the LightningModule you can access the experiment logger by doing:
56+
```python
57+
self.experiment
58+
59+
# add image
60+
# Look at PyTorch SummaryWriter docs for what you can do.
61+
self.experiment.add_image(...)
62+
```
63+
5564
The experiment object is a strict subclass of PyTorch SummaryWriter. However, this class
5665
also snapshots every detail about the experiment (data folder paths, code, hyperparams),
5766
and allows you to visualize it using tensorboard.

0 commit comments

Comments
 (0)