pytorch/torch
Owen Anderson 02df1ccd9c Remove const_cast's from subgraph matcher. (#20303)
Summary:
The trick here is that creating a mapping from const values to
const values means that downstream clients that want to mutate
the output of the mapping are stuck.  However, a mapping from
const values to non-const values is just fine and doesn't put
constraints on downstream clients.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20303

Differential Revision: D15284076

fbshipit-source-id: 16206fd910dd5f83218525ca301b1889df0586cb
2019-05-09 18:07:14 -07:00
..
_thnn Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
autograd profiler: improve repr for averaged events (#20281) 2019-05-09 11:34:52 -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 Remove const_cast's from subgraph matcher. (#20303) 2019-05-09 18:07:14 -07:00
cuda Fix cuda and cudnn libraries search process on Windows (#20205) 2019-05-08 06:08:47 -07:00
distributed Add support for reduce-scatter in c10d (#18844) 2019-04-26 13:46:57 -07:00
distributions Working on component-wise transformations that mimic torch.cat and torch.stack (#11868) 2019-05-07 07:49:29 -07:00
for_onnx Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
jit Remove SourceLocation (respin) (#20333) 2019-05-09 16:17:33 -07:00
legacy
lib Port TH library to ATen/Parallel (#19105) 2019-05-08 01:07:17 -07:00
multiprocessing fixes multiprocessing serialization for integer nn.Parameter (#18639) 2019-04-01 17:15:42 -07:00
nn Make DistributedDataParallel usable with CPU models (#20236) 2019-05-09 14:11:17 -07:00
onnx Standard gamma's export 2019-05-07 17:37:25 -07:00
optim Formula typo fix (#20110) 2019-05-06 08:08:37 -07:00
sparse Correct conv and pooling docstrings in nn module (#17052) 2019-02-15 06:58:02 -08:00
testing Bool Tensor for CUDA (#18166) 2019-04-02 16:17:05 -07:00
utils Have add_video use NamedTemporaryFile directly (#20223) 2019-05-08 15:00:44 -07:00
__config__.py Allow a non-OpenMP based build (#19749) 2019-05-06 19:34:48 -07:00
__init__.py Fix cuda and cudnn libraries search process on Windows (#20205) 2019-05-08 06:08:47 -07:00
__init__.pyi.in Add torch.unique_consecutive (#19060) 2019-04-10 07:36:08 -07:00
_jit_internal.py Respect order of Parameters in rnn.py (#18198) 2019-04-18 11:18:20 -07:00
_ops.py Override the resolve_library_path in FBCode (#17497) 2019-03-12 22:09:24 -07:00
_six.py Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
_storage_docs.py Bool tensor. Part 0: Boolean storage implementation (#16810) 2019-02-19 08:22:13 -08:00
_tensor_docs.py DOC: Update web documentation of geometric_ to be consistent with Tensor behaviour (#20091) 2019-05-03 15:39:10 -07:00
_tensor_str.py Add print function for QTensor (#19513) 2019-05-06 13:12:43 -07:00
_torch_docs.py Fix formatting for note in eig. (#19743) 2019-05-08 06:37:21 -07:00
_utils_internal.py Override the resolve_library_path in FBCode (#17497) 2019-03-12 22:09:24 -07:00
_utils.py flake8 fix 2019-04-03 14:14:18 -07:00
abi-check.cpp
CMakeLists.txt Add c10d::broadcast_coalesced and tests (#20234) 2019-05-09 14:11:08 -07:00
extension.h Remove deprecated variable_tensor_functions (#15003) 2018-12-11 17:16:11 -08:00
functional.py Rename potri to cholesky_inverse (#19498) 2019-04-22 08:18:39 -07:00
hub.py hub minor fixes (#19247) 2019-04-17 21:04:33 -07:00
py.typed More type stubs (#18511) 2019-04-01 16:03:58 -07:00
quasirandom.py Introduce SobolEngine (#10505) 2019-03-26 07:53:07 -07:00
random.py Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07: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 Fix in file position logic: file descriptor and Python-side handle (#20270) 2019-05-09 08:20:01 -07:00
storage.py Bool tensor. Part 0: Boolean storage implementation (#16810) 2019-02-19 08:22:13 -08:00
tensor.py Rename potri to cholesky_inverse (#19498) 2019-04-22 08:18: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.