[improve logging] add the param information when logging the optimizer engine (#36558)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36558
In the log, frequently see a large trunk of Using engine xx for rowWise Adagrad, but without information on which parameter is applied.
Test Plan: Should be covered by existing testing that use optimizer
Reviewed By: chocjy
Differential Revision: D20985176
fbshipit-source-id: 6eb4e19e5307db53fc89b38594a3f303f1492a1c