pytorch/torch
Gregory Chanan 705d80b51e Remove some Type.tensor usages and remove native_tensor without size. (#12355)
Summary:
This is to move us along the path to removing Type from the public API.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12355

Reviewed By: ezyang

Differential Revision: D10212616

Pulled By: gchanan

fbshipit-source-id: c9cd128d1111ab219cb0b2f3bf5b632502ab97c0
2018-10-05 11:12:07 -07:00
..
_thnn Update from Facebook (#8887) 2018-06-26 14:55:48 -07:00
autograd Implementing Matrix Norm for torch.norm (#11261) 2018-09-20 14:43:13 -07:00
backends Also set stdin to subprocess pipe in FindCUDNN windows popen call (#11435) 2018-09-09 11:40:25 -07:00
contrib Add code for TensorBoard visualization of JIT GraphExecutors (#8050) 2018-06-02 20:55:25 +02:00
csrc Remove some Type.tensor usages and remove native_tensor without size. (#12355) 2018-10-05 11:12:07 -07:00
cuda Make torch.cuda.* take device objects; Update distributed docs (#10833) 2018-08-27 15:24:42 -07:00
distributed Fix mispelling of AVAILABLE. (#12016) 2018-09-24 20:46:41 -07:00
distributions Fix broadcasting bug in StudentT (#12148) 2018-09-28 09:57:02 -07:00
for_onnx
jit Add bool type to IR (#11834) 2018-10-03 12:40:03 -07:00
legacy Remove torch/legacy (#11823) 2018-09-20 14:00:54 -07:00
lib Move Factory functions from Type to TypeExtendedInterface. (#12025) 2018-09-25 09:40:17 -07:00
multiprocessing Don't call into Python during Storage destruction. (#10407) 2018-08-13 11:20:07 -07:00
nn fix docs (#12126) 2018-09-29 22:26:45 -07:00
onnx add torch factory methods (zeros/ones) to onnx symbolic 2018-10-03 13:55:54 -07:00
optim Small optimization for adam (#12107) 2018-09-26 21:43:46 -07:00
sparse Delete dead Tensor code paths (#5417) 2018-02-27 17:58:09 -05:00
testing Codemod to update our codebase to 0.4 standard (#6641) 2018-04-17 22:06:54 -04:00
utils remove support for c extensions (#12122) 2018-10-01 13:55:28 -07:00
__init__.py Splits CPU and CUDA fusion compilers (#10981) 2018-09-14 14:05:34 -07:00
_ops.py Resolve builtins using a dict rather than by name (#10927) 2018-08-28 11:25:11 -07:00
_six.py migrating deprecated calls without abc module for containers (#11515) 2018-09-13 15:09:22 -07:00
_storage_docs.py [ready] General documentation improvements (#5450) 2018-03-08 13:21:12 -05:00
_tensor_docs.py add narrow() support for sparse tensors re: #8853 (#11342) 2018-09-26 12:24:54 -07:00
_tensor_str.py Sparse tensor printing; add NotImplemented autograd fn (#10181) 2018-09-05 19:41:22 -07:00
_torch_docs.py change \gamma to \Gamma (#12214) 2018-10-01 11:31:18 -07:00
_utils_internal.py Build system changes (#8627) 2018-06-20 17:45:26 -04:00
_utils.py Remove methods that start with an underscore from at::Tensor (#11152) 2018-09-07 11:55:11 -07:00
abi-check.cpp Fixes for Torch Script C++ API (#11682) 2018-09-17 09:54:50 -07:00
CMakeLists.txt Move interned_strings and get build working (#12039) 2018-10-05 00:41:18 -07:00
extension.h Unify C++ API with C++ extensions (#11510) 2018-09-24 14:44:21 -07:00
functional.py change \gamma to \Gamma (#12214) 2018-10-01 11:31:18 -07:00
random.py [ready] General documentation improvements (#5450) 2018-03-08 13:21:12 -05:00
README.txt Make all of TH and THC C++. (#6913) 2018-04-28 07:45:02 -04:00
script.h Include some JIT things in C++ docs (#11712) 2018-09-17 23:29:04 -07:00
serialization.py Reimplement storage slicing. (#11314) 2018-09-06 16:11:59 -07:00
storage.py Use torch.save in _StorageBase.__reduce__ (#9184) 2018-07-06 07:24:53 -07:00
tensor.py Implementing Matrix Norm for torch.norm (#11261) 2018-09-20 14:43:13 -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.