make momentum non negative in adagrad test (#18009)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18009
momentum should be initialized with non-negative values
Reviewed By: hyuen
Differential Revision: D14450841
fbshipit-source-id: 5bbbd11645db9e6f2dc42b26a00ff3caf378c59f