Revert D30745961: [DDP] Remove self.modules_params
authorHoward Huang <howardhuang@fb.com>
Thu, 9 Sep 2021 15:20:40 +0000 (08:20 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 9 Sep 2021 15:23:14 +0000 (08:23 -0700)
commit5bc53ac5ef9a14ea41dc01c78055e3382f996e57
tree9169528a99c144d64412cf08a4ef15a1586bf077
parentf1aaf8afcd7cc9ed8745aba48d091d0638d4afe3
Revert D30745961: [DDP] Remove self.modules_params

Test Plan: revert-hammer

Differential Revision:
D30745961 (https://github.com/pytorch/pytorch/commit/8c095102948c9601792a884dad56da5085c51bee)

Original commit changeset: 32d102502570

fbshipit-source-id: 59f7cc50d369b6cc2856cf4ebd0f58b96202336d
torch/nn/parallel/distributed.py