avalanche.models.dynamic_optimizers.reset_optimizer

avalanche.models.dynamic_optimizers.reset_optimizer(optimizer, model)[source]

Reset the optimizer to update the list of learnable parameters.

Warning

This function fails if the optimizer uses multiple parameter groups.

Parameters
  • optimizer

  • model

Returns