File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/lightning/pytorch/loggers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2525from typing_extensions import override
2626
2727import lightning .pytorch as pl
28+ from lightning .fabric .loggers .logger import rank_zero_experiment
2829from lightning .fabric .loggers .tensorboard import TensorBoardLogger as FabricTensorBoardLogger
2930from lightning .fabric .utilities .cloud_io import _is_dir
3031from lightning .fabric .utilities .logger import _convert_params
@@ -271,7 +272,7 @@ def _get_next_version(self) -> int:
271272
272273 @property
273274 @override
274- @rank_zero_only
275+ @rank_zero_experiment
275276 def experiment (self ) -> "SummaryWriter" :
276277 """Returns the underlying TensorBoard summary writer object. Allows you to use TensorBoard logging features
277278 directly in your :class:`~lightning.pytorch.core.LightningModule` or anywhere else in your code with:
You can’t perform that action at this time.
0 commit comments