pytorch/test
Elias Ellison 221edddd18 disallow shape analysis with resize ops (#17518)
Summary:
resize_ and resize_as resize the input tensor. because our shape analysis
is flow invariant, we don't do shape analysis on any op that relies on a Tensor that can alias a resized Tensor.

E.g. in the following graph the x += 10 x may have been resized.
```
torch.jit.script
def test(x, y):
    for i in range(10):
        x += 10
        x.resize_as_([1 for i in int(range(torch.rand())))
    return x

```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17518

Differential Revision: D14249835

Pulled By: eellison

fbshipit-source-id: f281b468ccb8c29eeb0f68ca5458cc7246a166d9
2019-02-27 19:02:09 -08:00
..
bottleneck
cpp Jaliyae/chunk buffer fix (#17409) 2019-02-23 08:48:53 -08:00
cpp_extensions Generate derived extension backend Type classes for each scalar type (#17278) 2019-02-22 18:38:33 -08:00
custom_operator
data Add abs for ByteTensor and CharTensor. (#16893) 2019-02-10 19:31:57 -08:00
error_messages
expect new batch of expect file removals 2019-02-26 08:20:43 -08:00
ffi/src
onnx ONNX Export Adaptive Pooling 2019-02-27 14:57:54 -08:00
optim
test_module
common_cuda.py
common_methods_invocations.py Move outplace ops to ATen (#16788) 2019-02-15 15:58:10 -08:00
common_nn.py fix lint (#17366) 2019-02-21 13:39:53 -08:00
common_utils.py Fix allow_inf in assertEqual (#16959) 2019-02-12 07:56:34 -08:00
expecttest.py
run_test.py Add namedtuple return for min, median, mode, kthvalue, add test for namedtuple return API (#16186) 2019-02-16 00:01:33 -08:00
test_autograd.py Add sparse gradient option to gather operation (#17182) 2019-02-27 11:42:48 -08:00
test_c10d.py Disable flaky test 2019-01-23 11:57:44 -08:00
test_cpp_extensions.py Make getting the dtype of a tensor work for backend extensions. 2019-02-15 13:47:37 -08:00
test_cuda.py Always synchronize src and dst streams when copying tensors (#16966) 2019-02-27 14:57:56 -08:00
test_cuda_primary_ctx.py Lazily load libcuda libnvrtc from c++ (#17317) 2019-02-22 13:51:45 -08:00
test_dataloader.py Make pin_memory and default_collate preserve namedtuples (#16440) 2019-02-11 08:47:33 -08:00
test_distributed.py Improve assertion failure message (#14813) 2018-12-05 17:20:25 -08:00
test_distributions.py enable unit tests working on ROCm 2.1 (#16871) 2019-02-09 00:30:50 -08:00
test_docs_coverage.py Add some missing docs to torch.rst, new unittest to enforce torch.rst no longer miss anything (#16039) 2019-02-15 07:02:31 -08:00
test_expecttest.py
test_indexing.py Use IndexError instead of RuntimeError in ATen CPU kernels 2019-02-13 10:19:28 -08:00
test_indexing_cuda.py
test_jit.py disallow shape analysis with resize ops (#17518) 2019-02-27 19:02:09 -08:00
test_multiprocessing.py Skip test_event_handle_multi_gpu() on a single GPU system (#17402) 2019-02-23 08:29:36 -08:00
test_multiprocessing_spawn.py
test_namedtuple_return_api.py Namedtuple return for symeig, eig, pstrf, qr, geqrf (#16950) 2019-02-20 14:01:19 -08:00
test_nccl.py
test_nn.py Fix autograd with buffers requiring grad in DataParallel (#13352) 2019-02-26 20:53:19 -08:00
test_numba_integration.py
test_optim.py enable unit tests working on ROCm 2.1 (#16871) 2019-02-09 00:30:50 -08:00
test_sparse.py Followup to #17049: change more instances of RuntimeError to IndexError 2019-02-25 15:34:22 -08:00
test_thd_distributed.py
test_torch.py Make transpose consistent with numpy's behavior (#17462) 2019-02-26 14:23:19 -08:00
test_type_hints.py create type hint stub files for module torch (#12500) 2019-01-29 12:14:17 -08:00
test_type_info.py Allow converting char tensor to numpy; add [fi]info.min (#15046) 2018-12-24 09:11:24 -08:00
test_utils.py enable unit tests working on ROCm 2.1 (#16871) 2019-02-09 00:30:50 -08:00