Skip to content

how to set find_unused_parameters=True? #5799

Discussion options

You must be logged in to vote

No need to subclass DDPPlugin. This is enough:

trainer = pl.Trainer(plugins=[DDPPlugin(find_unused_parameters=True)])

Which is used here:

https://github.com/PyTorchLightning/pytorch-lightning/blob/0a50bb406fa41dfa6a0e2be52f531a9c81c87d00/pytorch_lightning/plugins/ddp_plugin.py#L66-L68

Sorry for the inconvenience!

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@xiadingZ
Comment options

Comment options

You must be logged in to vote
5 replies
@DuinoDu
Comment options

@carmocca
Comment options

@rubencart
Comment options

@kwea123
Comment options

@carmocca
Comment options

Answer selected by carmocca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #5585 on February 04, 2021 23:36.