pytorch/torch
Nikolay Korovaiko d4c25add45 make sure the counter stays correct in between bailout transitions (#30186)
Summary:
This fixes the second issue reported in https://github.com/pytorch/pytorch/issues/29909 namely, a loop counter is assigned the wrong values after transitioning to a bailout graph.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30186

Differential Revision: D18646845

Pulled By: Krovatkin

fbshipit-source-id: 1f7c601dd9f35892979385ffa132fb0886a4f203
2019-12-03 14:59:08 -08:00
..
autograd explicitly provide memory format when calling to *_like operators 2019-11-18 21:47:52 -08:00
backends Fix typos (#30606) 2019-12-02 20:17:42 -08:00
contrib
csrc make sure the counter stays correct in between bailout transitions (#30186) 2019-12-03 14:59:08 -08:00
cuda Fix typos (#30606) 2019-12-02 20:17:42 -08:00
distributed Fix typos (#30606) 2019-12-02 20:17:42 -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 Fix typos (#30606) 2019-12-02 20:17:42 -08:00
legacy
lib Back out "Revert D17908478: Switch PyTorch/Caffe2 to C++14" 2019-12-03 14:33:43 -08:00
multiprocessing Add torch.multiprocessing.create_processes 2019-12-03 10:38:19 -08:00
nn Fix typos (#30606) 2019-12-02 20:17:42 -08:00
onnx Add support for quantized slice conversion (#30498) 2019-12-03 14:37:59 -08:00
optim Make all optimizers consistent so that they don't change gradients inplace 2019-11-26 12:16:25 -08:00
quantization Fix mapping white list (#30636) 2019-12-03 11:34:28 -08:00
sparse
testing
utils Back out "Revert D17908478: Switch PyTorch/Caffe2 to C++14" 2019-12-03 14:33:43 -08:00
__config__.py
__future__.py
__init__.py explicitly provide memory format when calling to *_like operators 2019-11-11 17:57:34 -08:00
__init__.pyi.in Improve Tensor type hints (#28578) 2019-10-27 04:43:51 -07:00
_classes.py
_jit_internal.py Fix typos (#30606) 2019-12-02 20:17:42 -08:00
_namedtensor_internals.py Allow align_to to take in partially named tensors (#27308) 2019-10-09 16:28:45 -07:00
_ops.py
_six.py module dedupe (#26666) 2019-10-12 09:51:57 -07:00
_storage_docs.py
_tensor_docs.py Revert D18580867: Add logical_and and logical_or 2019-11-27 09:27:00 -08:00
_tensor_str.py
_torch_docs.py Fix typos (#30606) 2019-12-02 20:17:42 -08:00
_utils_internal.py
_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 remove tuple_parser (#30659) 2019-12-03 14:49:59 -08:00
custom_class.h Small fixes for torchbind (#28800) 2019-10-28 16:45:24 -07:00
extension.h
functional.py C++ API parity: isfinite 2019-11-19 20:00:05 -08:00
hub.py Fix hub when branch name contains slash. (#27960) 2019-10-18 10:18:12 -07:00
py.typed
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
serialization.py (de)serialization of values between C++ and Python (#30108) 2019-11-23 00:06:07 -08:00
storage.py
tensor.py explicitly provide memory format when calling to clone() at Indexing.cpp 2019-11-07 05:38:32 -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.