def prelu(layer, **kwargs):
 nonlinearity = getattr(layer, 'nonlinearity', None)
 if (nonlinearity is not None):
  layer.nonlinearity = nonlinearities.identity
 return ParametricRectifierLayer(layer, **kwargs)

def prelu ( layer , ** kwargs ) : nonlinearity = getattr ( layer , 'nonlinearity' , None ) if ( nonlinearity is not None ) : layer . nonlinearity = nonlinearities . identity return ParametricRectifierLayer ( layer , ** kwargs )
parametric relu function .