Skip to content

Commit 8c09510

Browse files
rohan-varmafacebook-github-bot
authored andcommitted
[DDP] Remove self.modules_params (pytorch#64473)
Summary: Pull Request resolved: pytorch#64473 Unused after SPMD deprecated. ghstack-source-id: 137526305 Test Plan: CI Reviewed By: zhaojuanmao Differential Revision: D30745961 fbshipit-source-id: 32d102502570291e01579e5b47a6d74dc71013bb
1 parent d59ecc0 commit 8c09510

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

torch/nn/parallel/distributed.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,6 @@ def produces_sparse_gradient(module):
734734
for replica in modules_and_parameters
735735
]
736736

737-
# The following modules_params and modules_buffers are used for
738-
# param/buffer sync in _sync_params.
739-
self.modules_params = [list(self._get_parameters(self.module))]
740737
self._assign_modules_buffers()
741738

742739
return parameters, expect_sparse_gradient

0 commit comments

Comments
 (0)