pytorch/torch
Hameer Abbasi cf1882adeb Fix indexing for overrides. (#49324)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/46277

Pull Request resolved: https://github.com/pytorch/pytorch/pull/49324

Reviewed By: mruberry

Differential Revision: D25959334

Pulled By: ezyang

fbshipit-source-id: bac48b8ffee89d10aa04c004de2b53b4e54a96c2
2021-01-20 11:34:02 -08:00
..
_C [WIP] JIT Static Hooks: adding hooks to class type and adding logic for hook running/compilation (#49544) 2021-01-20 09:09:30 -08:00
autograd Add batched grad testing to gradcheck, turn it on in test_autograd (#50592) 2021-01-19 06:48:28 -08:00
backends
contrib Add type annotations to _tensorboard_vis.py and hipify_python.py (#49834) 2021-01-04 09:29:51 -08:00
csrc Fix indexing for overrides. (#49324) 2021-01-20 11:34:02 -08:00
cuda Add torch.cuda.can_device_access_peer (#50446) 2021-01-12 20:30:45 -08:00
distributed Add new backend type for Intel heterogeneous computation platform. (#49786) 2021-01-20 08:15:18 -08:00
distributions Validate args in HalfCauchy and HalfNormal (#50492) 2021-01-14 10:16:56 -08:00
fft Remove deprecated spectral ops from torch namespace (#48594) 2020-12-05 04:12:32 -08:00
for_onnx
futures [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
fx [FX] Fix NoneType annotation in generated code (#50777) 2021-01-19 23:16:58 -08:00
jit [WIP] JIT Static Hooks: adding hooks to class type and adding logic for hook running/compilation (#49544) 2021-01-20 09:09:30 -08:00
legacy
lib Change watchdog timeout logging from INFO to ERROR. (#50455) 2021-01-12 20:15:39 -08:00
linalg Added linalg.slogdet (#49194) 2021-01-19 07:28:12 -08:00
multiprocessing Drop unused imports (#49972) 2021-01-13 12:26:17 -08:00
nn Revert D25958987: [pytorch][PR] Add type annotations to torch.overrides 2021-01-20 08:59:44 -08:00
onnx Revert D24924236: [pytorch][PR] [ONNX] Handle sequence output shape and type inference 2021-01-15 05:58:35 -08:00
optim [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
package [package] Properly demangle all accesses of __name__ in importer.py (#50711) 2021-01-18 23:43:46 -08:00
profiler [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
quantization [quant][refactor] Minor refactor of some typos (#50304) 2021-01-12 15:23:13 -08:00
sparse [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
testing [ROCm] re-enable tests (#50691) 2021-01-20 11:23:39 -08:00
utils Fix bug in hipify if include_dirs is not specified in setup.py (#50703) 2021-01-19 16:30:17 -08:00
__config__.py Expose CXX_FLAGS through __config__ (#47861) 2020-12-01 19:58:29 -08:00
__future__.py
__init__.py [quant] Quantizable LSTM (#49671) 2020-12-30 15:21:38 -08:00
_appdirs.py
_autograd_functions.py
_classes.py [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
_jit_internal.py Unused exception variables (#50181) 2021-01-08 13:33:18 -08:00
_linalg_utils.py Drop unused imports (#49972) 2021-01-13 12:26:17 -08:00
_lobpcg.py [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
_lowrank.py Drop unused imports (#49972) 2021-01-13 12:26:17 -08:00
_namedtensor_internals.py
_ops.py [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
_six.py Remove redundant code for unsupported Python versions (#49486) 2021-01-06 12:45:46 -08:00
_storage_docs.py
_tensor_docs.py Add new backend type for Intel heterogeneous computation platform. (#49786) 2021-01-20 08:15:18 -08:00
_tensor_str.py Reland: Add base forward grad logic (#49734) 2020-12-22 12:11:27 -08:00
_torch_docs.py Implement NumPy-like function torch.fmax() & torch.fmin() (#49312) 2021-01-20 06:45:25 -08:00
_utils_internal.py
_utils.py add type annotations to torch._utils (#49705) 2021-01-07 16:20:16 -08:00
_VF.py
_vmap_internals.py Fix return value of _vmap_internals._get_name (#49951) 2021-01-05 07:00:48 -08:00
abi-check.cpp
CMakeLists.txt pyi codegen update - remove Declarations.yaml (#48754) 2020-12-07 10:39:38 -08:00
custom_class_detail.h
custom_class.h
extension.h
functional.py Treat has_torch_function and object_has_torch_function as static False when scripting (#48966) 2021-01-10 19:23:38 -08:00
hub.py add close() method to tqdm mock (#46040) 2020-12-21 12:24:30 -08:00
library.h Remove .impl_UNBOXED() and functionalities associated with it (#49220) 2021-01-06 14:22:46 -08:00
overrides.py Revert D25958987: [pytorch][PR] Add type annotations to torch.overrides 2021-01-20 08:59:44 -08:00
py.typed
quasirandom.py
random.py [*.py] Rename "Arguments:" to "Args:" (#49736) 2020-12-28 09:34:47 -08:00
README.txt
script.h
serialization.py Remove redundant code for unsupported Python versions (#49486) 2021-01-06 12:45:46 -08:00
storage.py
tensor.py move has_torch_function to C++, and make a special case object_has_torch_function (#48965) 2021-01-10 19:23:35 -08:00
types.py

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.