Optimizer#

class Optimizer[source]#

Bases: object

Abstract base class for defining an optimizer. All specific optimizers should inherit form this class and implement the required methods.

abstract property instance#

Abstract property to retrieve the optimizer instance.

abstract hook()[source]#

Abstract method to define the hook logic for the optimizer.