Skip to content

Conversation

@tianzhi0549
Copy link
Contributor

After converting BN layers to SyncBN layers, the function will set all requires_grad = True regardless of the original requires_grad states. I think it is a bug and have fixed it in this PR.

@pytorchbot pytorchbot added the module: nn Related to torch.nn label Jul 7, 2019
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zou3519 is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@li-roy
Copy link
Contributor

li-roy commented Jul 10, 2019

@zou3519 Is there a reason you cancelled this land?

@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in 6eb3969.

@tianzhi0549 tianzhi0549 deleted the fixed_syncbn_changing_requires_grad branch July 11, 2019 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants