(f, np_f, unsupported_params=None)
return doc
Helper to get docs.
Helper to get docs.
Helper to get docs .
def _np_doc_helper(f, np_f, unsupported_params=None):
  """Helper to get docs."""
  if not unsupported_params and not _has_docstring(f) and _has_docstring(np_f):
    return np_f.__doc__
  doc = 'TensorFlow variant of `numpy.%s`.\n\n' % np_f.__name__
  if unsupported_params:
    doc += 'Unsupported arguments: ' + ', '.join(
        '`' + name + '`' for name in unsupported_params) + '.\n\n'
  if _has_docstring(f):
    doc += f.__doc__
    doc = _add_blank_line(doc)
  if _has_docstring(np_f):
    doc += 'Documentation for `numpy.%s`:\n\n' % np_f.__name__
    doc += np_f.__doc__
  return doc
def _np_doc_helper ( f , np_f , unsupported_params = None ) : if not unsupported_params and not _has_docstring ( f ) and _has_docstring ( np_f ) : return np_f . __doc__ doc = 'TensorFlow variant of `numpy.%s`.\n\n' % np_f . __name__ if unsupported_params : doc += 'Unsupported arguments: ' + ', ' . join ( '`' + name + '`' for name in unsupported_params ) + '.\n\n' if _has_docstring ( f ) : doc += f . __doc__ doc = _add_blank_line ( doc ) if _has_docstring ( np_f ) : doc += 'Documentation for `numpy.%s`:\n\n' % np_f . __name__ doc += np_f . __doc__ return doc