avalanche.models.dynamic_optimizers.update_optimizer
- avalanche.models.dynamic_optimizers.update_optimizer(optimizer, old_params, new_params, reset_state=True)[source]
Update the optimizer by substituting old_params with new_params.
- Parameters
old_params – List of old trainable parameters.
new_params – List of new trainable parameters.
reset_state – Wheter to reset the optimizer’s state. Defaults to True.
- Returns