cooper-org / cooper

A general-purpose, deep learning-first library for constrained optimization in PyTorch
https://cooper.readthedocs.io/
MIT License
107 stars 11 forks source link

PID + EMA #79

Closed juan43ramirez closed 1 year ago

juan43ramirez commented 1 year ago

Changes

Implements the PID+EMA algorithm as a torch.optim.Optimizer. The current implementation supports updates with dense and sparse gradients. The latter is required in the context of IndexedMultipliers with GPU execution.

Testing

Co-authored by @juan43ramirez and @gallego-posada.