(layer_list)
return plist
Returns a flattened list of parameters. Each element in the list
    is a tuple ``((W, dW), states)`` for the parameters ``W``, parameter updates ``dW``,
    and the current set of ``states``.

    Args:
        layer_list (list): List of layers

    Returns:
        param_list (list): List of parameters.
Returns a flattened list of parameters. Each element in the list
    is a tuple ``((W, dW), states)`` for the parameters ``W``, parameter updates ``dW``,
    and the current set of ``states``.
Returns a flattened list of parameters . Each element in the list is a tuple (( W dW ) states ) for the parameters W parameter updates dW and the current set of states .
def get_param_list(layer_list):
    '''
    Returns a flattened list of parameters. Each element in the list
    is a tuple ``((W, dW), states)`` for the parameters ``W``, parameter updates ``dW``,
    and the current set of ``states``.

    Args:
        layer_list (list): List of layers

    Returns:
        param_list (list): List of parameters.
    '''
    plist = []
    for l in layer_list:
        ptuple = l.get_params()
        plist.extend(ptuple) if isinstance(ptuple, list) else plist.append(ptuple)
    return plist
def get_param_list ( layer_list ) : plist = [ ] for l in layer_list : ptuple = l . get_params ( ) plist . extend ( ptuple ) if isinstance ( ptuple , list ) else plist . append ( ptuple ) return plist