pytorch/torch
Michael Suo f5919dba45 refactoring of module/object (#22203)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22203
ghimport-source-id: 6b3807ac8aa53df2fdd770b43d8e54b8f0d69c20

Test Plan: Imported from OSS

Differential Revision: D15998760

Pulled By: suo

fbshipit-source-id: dd51edbcb66561189ae9d94a129434092bcad01b
2019-07-04 17:12:04 -07:00
..
_thnn
autograd Fix with emit_nvtx, also allow shape information to appear in nvtx ranges. (#21691) 2019-06-14 07:35:00 -07:00
backends Fix cuda and cudnn libraries search process on Windows (#20205) 2019-05-08 06:08:47 -07:00
contrib Remove GraphExecutor's python bindings (#19141) 2019-04-13 08:42:24 -07:00
csrc refactoring of module/object (#22203) 2019-07-04 17:12:04 -07:00
cuda Refactor Random Number Generators in ATen (#21555) 2019-06-19 13:54:09 -07:00
distributed fix python2 corner-case in torch.distributed.launch (#20996) 2019-06-27 05:19:37 -07:00
distributions Improving Categorical Distribution Docs' (#16291) (#21707) 2019-06-12 23:54:02 -07:00
for_onnx
jit Make CompilationUnit own Functions (#22202) 2019-07-04 17:12:00 -07:00
legacy
lib Add device guard around MPI operations (#22446) 2019-07-03 02:01:53 -07:00
multiprocessing rebuild_storage_fd retry on EINTR (#21723) 2019-06-14 09:10:00 -07:00
nn Remove weak script (#22212) 2019-07-03 17:28:25 -07:00
onnx Rereapply optional ScalarType interface changes that were reverted in D16079809 (#22456) 2019-07-03 20:03:25 -07:00
optim Implement AdamW optimizer (#21250) 2019-07-02 09:09:10 -07:00
sparse
testing
utils Rename macros and build options NAMEDTENSOR_ENABLED to BUILD_NAMEDTENSOR (#22360) 2019-07-02 11:46:13 -07:00
__config__.py Allow a non-OpenMP based build (#19749) 2019-05-06 19:34:48 -07:00
__future__.py Add torch.__future__._overwrite_module_params_on_conversion global flag, and check it in nn.Module._apply() (#21613) 2019-06-19 10:30:02 -07:00
__init__.py Add IterableDataset (#19228) 2019-06-20 20:12:44 -07:00
__init__.pyi.in Stop using Type in Python bindings (#21963) 2019-06-30 04:11:32 -07:00
_jit_internal.py Remove weak script (#22212) 2019-07-03 17:28:25 -07:00
_ops.py Set __file__ for torch.ops (#21888) 2019-06-18 08:46:23 -07:00
_six.py Finished the high-priority functions (#21127) 2019-06-04 17:59:05 -07:00
_storage_docs.py
_tensor_docs.py Bag of documentation fixes (#21846) 2019-06-16 19:35:27 -07:00
_tensor_str.py Update the way boolean tensor are being printed (#22238) 2019-07-01 18:04:42 -07:00
_torch_docs.py Add torch.where overload with only condition argument (#21986) 2019-07-02 18:18:15 -07:00
_utils_internal.py
_utils.py Add torch.load/torch.save for QTensor (#20830) 2019-05-30 20:52:19 -07:00
abi-check.cpp
CMakeLists.txt Remove the USE_MIOPEN build option as MIOpen is always used when built with ROCm. (#22420) 2019-07-02 00:05:59 -07:00
extension.h
functional.py Bag of documentation fixes (#21846) 2019-06-16 19:35:27 -07:00
hub.py tweak tqdm to have download speed in kB/MB/etc (#20908) 2019-05-26 15:34:47 -07:00
py.typed
quasirandom.py
random.py Refactor Random Number Generators in ATen (#21555) 2019-06-19 13:54:09 -07:00
README.txt
script.h
serialization.py improve torch.load & torch.save doc formatting 2019-06-13 12:13:04 -07:00
storage.py
tensor.py change return type for q_scale and q_zero_point (#21709) 2019-06-20 20:30:39 -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.