[C++ API Parity] Adam: updated step and class design (#33730)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33730
Differential Revision: D20292073
Pulled By: anjali411
fbshipit-source-id: a7b4a70f29027ab355aebb91873ea55d5cb51783