parameters: (self, key, model)
docstring: Average the model params from ``self.models[key]`` and ``model``,
          and update to ``self.models[key]``.
  
          Args:
              key(str): the key in ``models``
              model(Model): the model containing the parameters to update
docstring_summary: Average the model params from ``self.models[key]`` and ``model``,
          and update to ``self.models[key]``.
docstring_tokens: Average the model params from self . models [ key ] and model and update to self . models [ key ] .
function: def average_model(self, key, model):
          """Average the model params from ``self.models[key]`` and ``model``,
          and update to ``self.models[key]``.
  
          Args:
              key(str): the key in ``models``
              model(Model): the model containing the parameters to update
          """
          for param, other_param in zip(
                  self.models[key].parameters(), model.parameters()):
              param.data += other_param.data.cuda(param.data.get_device())
              param.data /= 2
function_tokens: def average_model ( self , key , model ) : for param , other_param in zip ( self . models [ key ] . parameters ( ) , model . parameters ( ) ) : param . data += other_param . data . cuda ( param . data . get_device ( ) ) param . data /= 2