Get weights of models.