PINA icon indicating copy to clipboard operation
PINA copied to clipboard

Optimizer and Scheduler

Open ndem0 opened this issue 5 months ago • 0 comments

          I really like both `Optimizer` and `Scheduler` classes! I think the `hook` method can be made an abstract method for the base classes. In this way all the classes that inherit from those need to have this function (which is fundamental to attach the network parameters to optimize).

The only thing that I am concerned about is the back compatibility with Lightning, as by default Lightning will use built-in functions inherited from Torch Optimizers and Schedulers. Maybe in the base classes Optimizer and Scheduler we should inherit from torch base classes of optimizer and scheduler as well?

Originally posted by @dario-coscia in https://github.com/mathLab/PINA/pull/312#discussion_r1730285717

ndem0 avatar Sep 09 '24 10:09 ndem0