def addGradientListToDocstring():
 def dec(fn):
  if (fn.__doc__ is not None):
   fn.__doc__ = (fn.__doc__ + str(Gradients.keys()).strip('[').strip(']'))
  return fn
 return dec

def addGradientListToDocstring ( ) : def dec ( fn ) : if ( fn . __doc__ is not None ) : fn . __doc__ = ( fn . __doc__ + str ( Gradients . keys ( ) ) . strip ( '[' ) . strip ( ']' ) ) return fn return dec
decorator to add list of current pre-defined gradients to the end of a function docstring .