pytorch/docs
mrshenli 0dc93ac119
[v1.6.0 patch] Install method docstrings from PyRRef to RRef (#40620)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40461

It turned out `:inheried-members:` (see [doc](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoclass)) is not really usable.

Because pybind11 generates a docstring that writes `self` as parent class, `rpc.PyRRef`, type.

As a workaround, I am pulling docstrings on parent-class, `PyRRef` class, into subclass, `RRef`. And do surgery on the docstring generated by pybind11.

{F241283111}

ghstack-source-id: 106472496

P134031188

Differential Revision: D7933834

fbshipit-source-id: c03a8a4c9d98888b64492a8caba1591595bfe247

Co-authored-by: Shihao Xu <shihaoxu@fb.com>
2020-06-26 12:15:28 -07:00
..
caffe2 Fix interpreter lines for files with python2-only syntax. 2019-07-09 10:51:43 -07:00
cpp Fix missing code in 'Installing C++ distribution of Pytorch' (#39237) 2020-06-01 07:54:43 -07:00
source [v1.6.0 patch] Install method docstrings from PyRRef to RRef (#40620) 2020-06-26 12:15:28 -07:00
.gitignore .gitignore for the docs folder 2019-10-08 12:18:30 -07:00
libtorch.rst Update libtorch docs (#21150) 2019-05-30 12:49:56 -07:00
make.bat Sphinx parallel build (#38785) 2020-05-21 13:03:55 -07:00
Makefile Restore docs coverage test via sphinx (#39331) 2020-06-04 10:49:38 -07:00
requirements.txt Get rid of javasphinx dependency. (#38042) 2020-05-07 19:52:31 -07:00