pytorch/torch
Tongzhou Wang b6f43afaca Fix tensordot allowing negative dims (#31954)
Summary:
fixes https://github.com/pytorch/pytorch/issues/31926
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31954

Differential Revision: D19331847

Pulled By: zou3519

fbshipit-source-id: e30dd9517917c056a52be7d16f23247fe28f4e28
2020-01-10 07:42:04 -08:00
..
autograd remove JSON dumping dependency (#30724) 2020-01-09 12:56:16 -08:00
backends Fix typos (#30606) 2019-12-02 20:17:42 -08:00
contrib Remove torch.contrib._graph_vis (#24874) 2019-08-21 10:48:07 -07:00
csrc Lock graph_task before writing leaf_streams. (#31995) 2020-01-09 13:26:36 -08:00
cuda Fix typos (#30606) 2019-12-02 20:17:42 -08:00
distributed add missing braces for format in rpc _to_worker_info (#31969) 2020-01-09 23:18:46 -08:00
distributions explicitly provide memory format when calling to clone() at Indexing.cpp 2019-11-07 05:38:32 -08:00
for_onnx Ignore F401 in all __init__.py without putting noqa (#25823) 2019-10-23 15:28:13 -07:00
jit Use real argument names for Python functions (#29300) 2020-01-08 15:41:28 -08:00
legacy
lib Remove refs from ArrayRef arguments (#31845) 2020-01-03 22:50:55 -08:00
multiprocessing Fix os.register_at_fork not defined on Windows (#30809) 2019-12-05 13:36:53 -08:00
nn Spelling fix in transformer docs 2020-01-09 11:13:23 -08:00
onnx Remove non-ascii character from torch/onnx/symbolic_opset11.py 2020-01-02 20:54:32 -08:00
optim Update old scheduler example usage (#31358) 2020-01-02 09:15:04 -08:00
quantization Remove insert_prepack_unpack and fold_prepack for now (#30909) 2019-12-12 07:44:31 -08:00
sparse add some sparse tensor ops support in TorchScript (#24967) 2019-08-23 15:48:14 -07:00
testing Fix get_all_math_dtypes for device='cuda' retuning None (#23028) 2019-07-19 09:29:16 -07:00
utils Uniformly apply Windows logic in cpp_extensions everywhere (#31161) 2020-01-09 07:28:11 -08: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 Don't use RTLD_GLOBAL to load _C. (#31162) 2020-01-09 07:28:15 -08:00
__init__.pyi.in Improve Tensor type hints (#28578) 2019-10-27 04:43:51 -07:00
_classes.py Separate torchbind from Python (#30242) 2019-12-21 22:52:40 -08:00
_jit_internal.py Cleanup after moving language reference (#31146) 2019-12-18 15:09:35 -08:00
_namedtensor_internals.py Remove all remaining usages of BUILD_NAMEDTENSOR (#31116) 2019-12-12 09:53:03 -08:00
_ops.py Initial torchbind prototype (#21098) 2019-08-02 18:45:15 -07:00
_overrides.py Add the __torch_function__ API override mechanism (#30730) 2019-12-04 13:19:07 -08:00
_six.py module dedupe (#26666) 2019-10-12 09:51:57 -07:00
_storage_docs.py Enabled BFloat16 storage (#21523) 2019-07-09 21:51:06 -07:00
_tensor_docs.py Add op bitwise_or (#31559) 2020-01-08 15:06:30 -08:00
_tensor_str.py Remove all remaining usages of BUILD_NAMEDTENSOR (#31116) 2019-12-12 09:53:03 -08:00
_torch_docs.py C++ API parity: isinf (#31099) 2020-01-09 13:16:13 -08:00
_utils_internal.py Don't use RTLD_GLOBAL to load _C. (#31162) 2020-01-09 07:28:15 -08:00
_utils.py Implement pickle support for sparse tensors and torch.layout instances (#27062) 2019-10-04 08:09:32 -07:00
abi-check.cpp
CMakeLists.txt Don't unconditionally compile runJITCPPTests (#31236) 2020-01-07 10:24:52 -08:00
custom_class.h Separate torchbind from Python (#30242) 2019-12-21 22:52:40 -08:00
extension.h Remove deprecated variable_tensor_functions (#15003) 2018-12-11 17:16:11 -08:00
functional.py Fix tensordot allowing negative dims (#31954) 2020-01-10 07:42:04 -08:00
hub.py Fix hub when branch name contains slash. (#27960) 2019-10-18 10:18:12 -07:00
py.typed More type stubs (#18511) 2019-04-01 16:03:58 -07:00
quasirandom.py explicitly provide memory format when calling to clone() at Indexing.cpp 2019-11-07 05:38:32 -08:00
random.py Move torch.cuda's atfork handler into C++ (#29101) 2019-11-11 07:34:27 -08:00
README.txt
script.h Test cases for custom ops with autograd (#31003) 2019-12-15 22:37:24 -08:00
serialization.py Raise ValueError if CUDA device is specified without specifying the : (#29087) 2020-01-07 10:29:49 -08:00
storage.py Enabled BFloat16 storage (#21523) 2019-07-09 21:51:06 -07:00
tensor.py Add useful warnings for t.grad when it won't be populated for known reasons (#30531) 2019-12-11 09:47:18 -08: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.