def copy_model_params(model1, model2):
    """
    copies model parameters from model1 to model2. Both must be same model class
    :param model1:
    :param model2:
    :return: model2
    """
    return model2.load_state_dict(model1.state_dict())