pytorch/torch
Roy Li d70c6f23f4 Pass ScalarType separately from Type in python constructors
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17786

Reviewed By: ezyang

Differential Revision: D14379075

fbshipit-source-id: 3abf066563b789a30cafe5b0c868a41326f5b833
2019-04-04 02:24:20 -07:00
..
_thnn Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
autograd Fix flake8 issues in gragrad test 2019-04-02 12:45:18 -07:00
backends Add ability to query if built with CUDA and MKL-DNN. (#18362) 2019-03-25 10:39:09 -07:00
contrib Remove stages from IR, they are not longer used 2018-10-05 13:58:15 -07:00
csrc Pass ScalarType separately from Type in python constructors 2019-04-04 02:24:20 -07:00
cuda More type stubs (#18511) 2019-04-01 16:03:58 -07:00
distributed Highlight NCCL all_reduce and all_gather requirements (#18741) 2019-04-03 09:50:29 -07:00
distributions Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
for_onnx Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
jit Fix the duplication problem in _unique_state_dict (#18139) 2019-04-03 23:16:44 -07:00
legacy Remove torch/legacy (#11823) 2018-09-20 14:00:54 -07:00
lib Introduce DeprecatedTypeProperties class (#17991) 2019-04-04 02:24:13 -07:00
multiprocessing fixes multiprocessing serialization for integer nn.Parameter (#18639) 2019-04-01 17:15:42 -07:00
nn Support replicating multi-GPU modules (#18687) 2019-04-03 14:43:07 -07:00
onnx add an assertion to check the param num (#18145) 2019-04-03 12:47:23 -07:00
optim More type stubs (#18511) 2019-04-01 16:03:58 -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 Update cpp_extension.py (#18638) 2019-04-02 07:56:38 -07:00
__init__.py Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
__init__.pyi.in More type stubs (#18511) 2019-04-01 16:03:58 -07:00
_jit_internal.py Upgrade flake8-bugbear to master, fix the new lints. (#18507) 2019-03-27 08:07:41 -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 QTensor (#18230) 2019-04-03 13:17:11 -07:00
_tensor_str.py Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -07:00
_torch_docs.py Adding pin_memory kwarg to zeros, ones, empty, ... tensor constructors. (#18455) 2019-04-02 08:48:19 -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 Fixes for Torch Script C++ API (#11682) 2018-09-17 09:54:50 -07:00
CMakeLists.txt Add ability to specialize class types to ArgumentSpec (#18314) 2019-04-02 17:35:57 -07:00
extension.h Remove deprecated variable_tensor_functions (#15003) 2018-12-11 17:16:11 -08:00
functional.py Rename btriunpack to lu_unpack (#18529) 2019-03-29 13:01:30 -07:00
hub.py Turn on F401: Unused import warning. (#18598) 2019-03-30 09:01:17 -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 Make all of TH and THC C++. (#6913) 2018-04-28 07:45:02 -04:00
script.h Use torch:: instead of at:: in all C++ APIs (#13523) 2018-11-06 14:32:25 -08:00
serialization.py Serialization supports pathlib.Path object for the input argument (#18562) 2019-03-28 21:01:15 -07:00
storage.py Bool tensor. Part 0: Boolean storage implementation (#16810) 2019-02-19 08:22:13 -08:00
tensor.py Rename btrifact* to lu (#18435) 2019-03-29 00:34:30 -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.