parameters: (self)
docstring: For each optimizer, call before_update for all the models, update the weights and increment the step for the model.
docstring_summary: For each optimizer, call before_update for all the models, update the weights and increment the step for the model.
docstring_tokens: For each optimizer call before_update for all the models update the weights and increment the step for the model .
function: def update_weights(self):
          ''' For each optimizer, call before_update for all the models, update the weights and increment the step for the model.'''
          for k, optimizer in self.optimizers.items():
              self.models[k].before_update()
              optimizer.step()
              self.models[k].inc_step()
function_tokens: def update_weights ( self ) : for k , optimizer in self . optimizers . items ( ) : self . models [ k ] . before_update ( ) optimizer . step ( ) self . models [ k ] . inc_step ( )