Skip to content

logging question in DDP #4702

Discussion options

You must be logged in to vote

It is averaged if you set sync_dist=True (https://pytorch-lightning.readthedocs.io/en/stable/lightning_module.html#pytorch_lightning.core.lightning.LightningModule.log.params.sync_dist)

You can change the op from average (mean) to something else with sync_dist_op.

Given that you are logging inside of validation_step, it will be done at the end of the epoch by default. You can change this behaviour via on_step and on_epoch.

Please have a look at the docs page I linked. Lots of useful info there 😄

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Borda
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4702 on December 23, 2020 20:07.