def get_all_params(layer, unwrap_shared=True, **tags):
 layers = get_all_layers(layer)
 params = chain.from_iterable((l.get_params(unwrap_shared=unwrap_shared, **tags) for l in layers))
 return utils.unique(params)

def get_all_params ( layer , unwrap_shared = True , ** tags ) : layers = get_all_layers ( layer ) params = chain . from_iterable ( ( l . get_params ( unwrap_shared = unwrap_shared , ** tags ) for l in layers ) ) return utils . unique ( params )
returns a list of theano shared variables or expressions that parameterize the layer .