def get_params(layer):     
    """
    This function returns the parameters for use when loading weights of one
    model into another
    :param : layer : Keras Layer object
    :returns list of numpy arrays for all of the layers in the model
    """
    return [param.numpy() for param in layer.variables]