Revert "Improvements for DDP Optimizer (#87525)"
This reverts commit cf693a02e0f6a022d10fd882af20efacfe7ecb76.
Reverted https://github.com/pytorch/pytorch/pull/87525 on behalf of https://github.com/ZainRizvi due to The macos error messages look like they were indeed caused by this PR