pytorch/torch
eellison 29fe90e2a2
[release/1.6] [JIT] Dont include view ops in autodiff graphs (#42029)
* Dont include view ops in autodiff graphs

* skip view ops in autodiff testing

* two more tests

* appease calng format

* Pacify clang-format

Co-authored-by: eellison <eellison@fb.com>
Co-authored-by: Nikita Shulga <nikita.shulga@gmail.com>
2020-07-24 13:41:32 -07:00
..
_C Add typing for _CudaStreamBase and _CudaEventBase classes (#40256) 2020-06-19 11:29:41 -07:00
autograd Increase shapes column length (#40440) 2020-06-23 10:49:01 -07:00
backends Fix torch.backends.cudnn mypy error (#38947) 2020-06-03 10:55:43 -07:00
contrib Add --check-untyped-defs to mypy.ini and test suite (#37594) 2020-05-07 06:36:01 -07:00
csrc [release/1.6] [JIT] Dont include view ops in autodiff graphs (#42029) 2020-07-24 13:41:32 -07:00
cuda Preserve CUDA gencode flags (#41212) 2020-07-09 17:34:50 -07:00
distributed fix autodoc for torch.distributed.launch (#40963) (#41089) 2020-07-07 14:23:31 -07:00
distributions Replace torch.is_tensor usages with isinstance checks. (#38062) 2020-05-08 10:10:11 -07:00
for_onnx
futures Improve torch.futures docs (#40245) 2020-06-18 18:47:25 -07:00
jit Inplace construct of TorchScript Module and inplace option for quantization (#40750) 2020-07-02 10:22:45 -07:00
legacy
lib [RELAND2] Change AccumulateGrad to yield .grads that match weights' memory layout (#40358) 2020-06-22 17:13:21 -07:00
multiprocessing Remove (most) Python 2 support from Python code (#35615) 2020-04-22 09:23:14 -07:00
nn [ONNX][1.6] Update interpolate recompute_scale_factor default (#41117) 2020-07-09 17:24:53 -07:00
onnx ONNX: fix bug in export of cumsum operator (#40044) 2020-06-22 10:11:35 -07:00
optim Make Optimizer.state_dict() nondeterministic (#37347) 2020-06-01 15:32:02 -07:00
quantization Remove unused Logger in get_matching_activations (#41023) (#41087) 2020-07-07 16:09:37 -07:00
sparse Sparse softmax support (CPU) (#36305) 2020-05-14 08:08:40 -07:00
testing [release/1.6] [JIT] Dont include view ops in autodiff graphs (#42029) 2020-07-24 13:41:32 -07:00
utils [1.6] Add optimizer_for_mobile doc into python api root doc (#41491) 2020-07-22 17:37:45 -07:00
__config__.py
__future__.py
__init__.py [1.6.0] Mark torch.set_deterministic and torch.is_deterministic as experimental (#41870) 2020-07-22 18:32:47 -07:00
_appdirs.py Delete Python <= 3.5 specific checks from the code (#39879) 2020-06-15 08:16:06 -07:00
_classes.py [reapply][JIT] Namespaces for TorchBind (#35254) 2020-03-24 00:39:48 -07:00
_jit_internal.py Back out "[pytorch][PR] [JIT] Infer NamedTuple type attributes of nn.Modules correctly" (#40270) 2020-06-19 02:58:31 -07:00
_linalg_utils.py Fix type annotations and make MyPy run on torch/ (#36584) 2020-04-22 14:17:08 -07:00
_lobpcg.py Revert "Revert D21337640: [pytorch][PR] Split up documentation into subpages and clean up some warnings" (#37778) 2020-05-04 14:32:35 -07:00
_lowrank.py Revert "Revert D21337640: [pytorch][PR] Split up documentation into subpages and clean up some warnings" (#37778) 2020-05-04 14:32:35 -07:00
_namedtensor_internals.py Remove (most) Python 2 support from Python code (#35615) 2020-04-22 09:23:14 -07:00
_ops.py [JIT] Passing custom class as arg (#32260) 2020-01-23 14:54:59 -08:00
_overrides.py [1.6.0] Mark torch.set_deterministic and torch.is_deterministic as experimental (#41870) 2020-07-22 18:32:47 -07:00
_six.py torch._six.PY37 should be true for Python-3.8 as well (#40868) (#41091) 2020-07-07 17:15:01 -07:00
_storage_docs.py Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00
_tensor_docs.py Meta tensors, but without code deduplication (#38490) 2020-06-22 09:18:33 -07:00
_tensor_str.py Fix complex printing for sci_mode=True (#40513) (#40919) 2020-07-02 09:45:35 -07:00
_torch_docs.py Ports full dtype inference deprecation to 1.6 (#40799) 2020-07-01 09:27:27 -07:00
_utils_internal.py Separate RTLD_GLOBAL from _load_global_deps() (#36682) 2020-04-22 19:08:44 -07:00
_utils.py Preserve Backward compatibility of models serialized before #31040 (#33796) 2020-02-26 13:40:38 -08:00
_VF.py Delete torch/__init__.pyi, deferring to direct extension stubs (#38157) 2020-05-11 07:20:13 -07:00
abi-check.cpp
CMakeLists.txt Preserve CUDA gencode flags (#41212) 2020-07-09 17:34:50 -07:00
custom_class_detail.h Test BC for built-in torchbind methods (#38560) 2020-05-15 19:06:59 -07:00
custom_class.h [JIT] Add Type::repr_str to return human-readable str (#39544) 2020-06-10 12:01:24 -07:00
extension.h
functional.py [Docs] Update torch.(squeeze, split, set_printoptions, save) docs. (#39303) 2020-06-05 12:57:53 -07:00
hub.py Add file_name argument to load_state_dict_from_url (#39749) 2020-06-12 10:31:22 -07:00
library.h Add reference documentation for torch/library.h (#41470) (#41602) 2020-07-22 11:10:16 -07:00
py.typed
quasirandom.py [pytorch] Make behavior of SobolEngine consistent w/ other RNG functions (#36427) 2020-04-13 07:53:33 -07:00
random.py
README.txt
script.h [jit] do the code reorg (#33851) 2020-02-27 13:02:51 -08:00
serialization.py [1.6 cherrypick] Fix delegating to jit.load from torch.load (#41013) 2020-07-06 16:55:00 -07:00
storage.py [testing] Dont use zipfile for storage __reduce__ (#39893) 2020-06-12 16:48:12 -07:00
tensor.py [RELAND2] Change AccumulateGrad to yield .grads that match weights' memory layout (#40358) 2020-06-22 17:13:21 -07:00
types.py Device and torch._C function cleanup (#38173) 2020-06-03 19:17:22 -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.