pytorch/torch
Xu Zhao 7f66fa62ca Fix typing errors in torch.distributed.nn.* directory. (#47533)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47533

Test Plan: Imported from OSS

Reviewed By: walterddr

Differential Revision: D24952500

Pulled By: xuzhao9

fbshipit-source-id: 8e66784fd8f9f111b6329e0bb48d6cd61c690a4a
2020-11-16 23:27:55 -08:00
..
_C Fix typing errors in torch.distributed.distributed_c10d.* (#47532) 2020-11-16 23:27:51 -08:00
autograd Add max_src_column_width to autograd profiler (#46257) 2020-11-10 18:51:39 -08:00
backends PyTorch NNAPI integration prototype (#46780) 2020-11-05 21:31:01 -08:00
contrib
csrc Fix typing errors in torch.distributed.distributed_c10d.* (#47532) 2020-11-16 23:27:51 -08:00
cuda Add type informations to torch.cuda (#47134) 2020-11-13 21:34:35 -08:00
distributed Fix typing errors in torch.distributed.nn.* directory. (#47533) 2020-11-16 23:27:55 -08:00
distributions Annotate torch.nn.cpp (#46490) 2020-10-23 17:40:32 -07:00
fft torch.fft: Two dimensional FFT functions (#45164) 2020-10-17 16:23:06 -07:00
for_onnx
futures fix #45552 - adding add_done_callback(fn) to torch.futures.Future (#45675) 2020-10-13 07:47:36 -07:00
fx fix node manipulation in partition class (#48016) 2020-11-16 15:33:11 -08:00
jit torch.Assert: make it torch.jit.script'able (#47399) (#47973) 2020-11-16 11:46:12 -08:00
legacy
lib [resubmit] Providing more information while crashing process in async error handling (#47246) 2020-11-13 20:11:06 -08:00
linalg Added linalg.cholesky (#46083) 2020-11-13 16:50:40 -08:00
multiprocessing add type annotations to multiprocessing module (#47756) 2020-11-16 13:05:49 -08:00
nn Make sure valid ParameterList/Dict don't warn on creation (#47772) 2020-11-16 13:16:59 -08:00
onnx Missing curly bracket. (#47855) 2020-11-13 21:17:24 -08:00
optim Revert D24262885: [pytorch][PR] Added foreach_zero_ API 2020-10-28 06:48:59 -07:00
package [packaging] simpler dependency plotting (#45686) 2020-10-06 23:40:00 -07:00
quantization [TorchScript] Support user defined classes as constants (#5062) 2020-11-16 20:52:02 -08:00
sparse Revised sparse tensor documentation. (#45400) 2020-10-22 02:07:54 -07:00
testing Pass in smaller timeout into init_process_group for distributed_test (#47896) 2020-11-14 13:38:20 -08:00
utils Cleanup unused code for Python < 3.6 (#47822) 2020-11-13 21:37:01 -08:00
__config__.py
__future__.py
__init__.py torch.Assert: make it torch.jit.script'able (#47399) (#47973) 2020-11-16 11:46:12 -08:00
_appdirs.py
_autograd_functions.py make torch.lu differentiable. (#46284) 2020-10-23 10:13:46 -07:00
_classes.py [BE] Use f-string in various Python functions (#44161) 2020-09-04 07:38:25 -07:00
_jit_internal.py [JIT] add support for torch.jit.Final in python 3.6 (#47393) 2020-11-06 14:30:44 -08:00
_linalg_utils.py
_lobpcg.py Backward support for generalized eigenvalue solver with LOBPCG in forward [only k-rank SYMEIG case] (#43002) 2020-09-28 07:22:35 -07:00
_lowrank.py Allow large inputs to svd_lowrank. Fix inaccuracy in torch.svd docs. (#47440) 2020-11-09 21:04:48 -08:00
_namedtensor_internals.py
_ops.py
_six.py Delete raise_from from torch._six (#43981) 2020-09-01 15:46:18 -07:00
_storage_docs.py
_tensor_docs.py Implement Tensor.new_empty_strided(sizes, strides, *, dtype, device, requires_grad) (#47225) 2020-11-09 08:31:01 -08:00
_tensor_str.py
_torch_docs.py Fix docstring typo (#47545) 2020-11-16 13:03:36 -08:00
_utils_internal.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07:00
_utils.py
_VF.py
_vmap_internals.py Allow vmap to accept nested python data structures as inputs (#46289) 2020-10-20 07:52:17 -07:00
abi-check.cpp
CMakeLists.txt make a way to disable callgrind (#46116) 2020-10-13 16:18:04 -07:00
custom_class_detail.h
custom_class.h [TorchBind] Support using lambda function as TorchBind constructor (#47819) 2020-11-12 09:29:34 -08:00
extension.h
functional.py Revert "Fixed einsum compatibility/performance issues (#46398)" (#47821) 2020-11-12 08:11:40 -08:00
hub.py Cleanup unused code for Python < 3.6 (#47822) 2020-11-13 21:37:01 -08:00
library.h Revert D24714803: make duplicate def() calls an error in the dispatcher. Updating all fb operators to use the new dispatcher registration API 2020-11-16 20:14:26 -08:00
overrides.py Added linalg.cholesky (#46083) 2020-11-13 16:50:40 -08:00
py.typed
quasirandom.py Type check quasirandom (#45434) 2020-09-28 16:49:38 -07:00
random.py
README.txt
script.h
serialization.py Use storage.cpu() for moving storage to CPU in serialization. (#46028) 2020-10-13 12:51:10 -07:00
storage.py Add type informations to torch/storage.py (#46876) 2020-11-06 11:34:10 -08:00
tensor.py Fix output type of torch.max for Tensor subclasses. (#47110) 2020-11-10 19:45:36 -08:00
types.py Enable torch.tensor typechecks (#45077) 2020-09-24 08:22:06 -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.