mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
Summary: It gives a significant perf boost to do the parameter update inside MomentumSGD, instead of with a separate WeightedSum op. To ensure backwards compatibility, I made it a separate op. Also added an unit test. Reviewed By: prigoyal Differential Revision: D4262446 fbshipit-source-id: 38e7ee6d7677b398658ac7fe9b7a59b569e033f4