opto.optimizers.optimizer.Optimizer#
- class Optimizer[source]#
Optimizer based on Trace graph.
Attributes
Return a Propagator object that can be used to propagate feedback in backward.
Aggregate the graphs of all the parameters.
Methods
backward
(node, *args, **kwargs)Propagate the feedback backward.
Return the default Propagator object of the optimizer.
propose
(*args, **kwargs)Propose the new data of the parameters based on the feedback.
step
(*args, **kwargs)Update the parameters based on the feedback.
update
(update_dict)Update the trainable parameters given a dictionary of new data.
Reset the feedback.
- __init__(parameters: List[ParameterNode], *args, propagator: Propagator | None = None, **kwargs)[source]#
- __new__(**kwargs)#