quantax.optimizer.AdamUpdater#
- class quantax.optimizer.AdamUpdater#
Bases:
UpdaterThe AdamSR update, a variant of SR with first and second order momentum (like Adam) stored in the
m,vandtbuffers. The time cost is roughly twice of the plain update. The second order momentum enters as adiag_preconditionerargument: it is passed through to solvers that accept it (e.g.lsmr) and emulated by right preconditioning for those that don’t.If the new momentum values contain non-finite entries (e.g. from a non-finite gradient solve), the
m,vandtbuffers are left unchanged, so a single corrupted iteration can’t poison the accumulated momentum. The resulting non-finite step is still returned and is expected to be rejected byupdate.