Add some missing docs for tensor methods and attributes, new unittest to enforce...
authorXiang Gao <qasdfgtyuiop@gmail.com>
Wed, 27 Mar 2019 01:00:15 +0000 (18:00 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 27 Mar 2019 01:05:56 +0000 (18:05 -0700)
commit2ba41c5550c55fc60de7c9ade76d48e5ee13a350
tree3f49be1d37165e5db1e339c0a18bf54f1293095a
parent66e8c7481468133de9aea572d78bf075c1122b3d
Add some missing docs for tensor methods and attributes, new unittest to enforce tensors.rst no longer miss anything (#16057)

Summary:
This depend on https://github.com/pytorch/pytorch/pull/16039

This prevent people (reviewer, PR author) from forgetting adding things to `tensors.rst`.

When something new is added to `_tensor_doc.py` or `tensor.py` but intentionally not in `tensors.rst`, people should manually whitelist it in `test_docs_coverage.py`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16057

Differential Revision: D14619550

Pulled By: ezyang

fbshipit-source-id: e1c6dd6761142e2e48ec499e118df399e3949fcc
docs/source/tensors.rst
test/test_docs_coverage.py
test/test_torch.py
torch/_tensor_docs.py