pytorch/torch
Xiang Gao 2ba41c5550 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
2019-03-26 18:05:56 -07:00
..
_thnn Fix lstrip bug revealed by B005 lint (#18177) 2019-03-21 07:56:24 -07:00
autograd Fix B903 lint: save memory for data classes with slots/namedtuple (#18184) 2019-03-21 09:10:30 -07:00
backends Add ability to query if built with CUDA and MKL-DNN. (#18362) 2019-03-25 10:39:09 -07:00
contrib
csrc Resolving comments from Bool Tensor for CPU PR (#18165) 2019-03-26 09:59:34 -07:00
cuda Implement reference counting for shared IPC CUDA tensors (#16854) 2019-03-25 10:24:38 -07:00
distributed Fixed a formatting issue in doc comments (#17505) 2019-03-12 09:55:29 -07:00
distributions Rename trtrs to triangular_solve (#18213) 2019-03-21 14:27:21 -07:00
for_onnx
jit python interop for script classes (#18148) 2019-03-22 16:30:04 -07:00
legacy
lib Remove GLOO usage when USE_GLOO is OFF 2019-03-20 09:31:53 -07:00
multiprocessing Implement reference counting for shared IPC CUDA tensors (#16854) 2019-03-25 10:24:38 -07:00
nn Added tensor size warning to F.mse_loss() (#18349) 2019-03-24 19:22:14 -07:00
onnx Revert D14605905: [pytorch][PR] Add return_counts to torch.unique 2019-03-26 17:18:01 -07:00
optim SGD: remove unneeded multiply-add initialization operations (#18114) 2019-03-19 10:34:17 -07:00
sparse Correct conv and pooling docstrings in nn module (#17052) 2019-02-15 06:58:02 -08:00
testing Lightweight String check Utility (#16858) 2019-02-19 12:31:57 -08:00
utils don't include /usr/include when nvcc is in /usr/bin (#18127) 2019-03-18 12:18:27 -07:00
__init__.py Introduce SobolEngine (#10505) 2019-03-26 07:53:07 -07:00
__init__.pyi.in Cleanup arg{min, max} (#17103) 2019-03-20 16:28:27 -07:00
_jit_internal.py use flake8-mypy (#17721) 2019-03-07 09:15:54 -08:00
_ops.py Override the resolve_library_path in FBCode (#17497) 2019-03-12 22:09:24 -07:00
_six.py create type hint stub files for module torch (#12500) 2019-01-29 12:14:17 -08:00
_storage_docs.py Bool tensor. Part 0: Boolean storage implementation (#16810) 2019-02-19 08:22:13 -08:00
_tensor_docs.py Add some missing docs for tensor methods and attributes, new unittest to enforce tensors.rst no longer miss anything (#16057) 2019-03-26 18:05:56 -07:00
_tensor_str.py Added scientific notation on set_printoptions (#16876) 2019-02-11 04:55:12 -08:00
_torch_docs.py Namedtuple return for solve, slogdet, sort, topk (#17093) 2019-03-26 12:39:08 -07:00
_utils_internal.py Override the resolve_library_path in FBCode (#17497) 2019-03-12 22:09:24 -07:00
_utils.py create type hint stub files for module torch (#12500) 2019-01-29 12:14:17 -08:00
abi-check.cpp
CMakeLists.txt Add quant-passes stubs. (#18151) 2019-03-25 17:48:54 -07:00
extension.h Remove deprecated variable_tensor_functions (#15003) 2018-12-11 17:16:11 -08:00
functional.py Revert D14605905: [pytorch][PR] Add return_counts to torch.unique 2019-03-26 17:18:01 -07:00
hub.py Fix github branch prefix v (#15552) 2018-12-26 19:48:47 -08:00
quasirandom.py Introduce SobolEngine (#10505) 2019-03-26 07:53:07 -07:00
random.py Improve the docstring of nn.random.fork_rng (#15960) 2019-01-14 02:41:18 -08:00
README.txt
script.h Use torch:: instead of at:: in all C++ APIs (#13523) 2018-11-06 14:32:25 -08:00
serialization.py Avoid unnecessary CPU-to-GPU copy of torch.load with CUDA (#17297) 2019-02-21 01:32:19 -08:00
storage.py Bool tensor. Part 0: Boolean storage implementation (#16810) 2019-02-19 08:22:13 -08:00
tensor.py Revert D14605905: [pytorch][PR] Add return_counts to torch.unique 2019-03-26 17:18:01 -07:00

Note [TH abstraction violation]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TH/THC provide some hpp headers, which are proper C++ headers rather than
C headers.  These headers serve double duty as *internal implementation
detail* headers, whose contents should largely not be used by external
clients.

Ideally, we would not install these headers at all; instead, you should
use public functions (in headers like `THTensor.h`, NOT `THTensor.hpp`)
to manipulate these structs.  However, there are a few places
in torch/csrc where we violate this abstraction.  They are marked with
a pointer to this note.  Each of those sites will have to be refactored
when we refactor the guts of THTensor and related structures.