pytorch/torch/_dynamo/variables
Yanbo Liang 37e46a5035 [Dynamo] Fix several bugs & code refactor in RangeVariable (#89322)
Fix bug in [7k github models](https://github.com/pytorch/torchdynamo/issues/1884): https://github.com/jansel/pytorch-jit-paritybench/blob/master/generated/test_clovaai_stargan_v2.py
```
E       TypeError: 'list' object cannot be interpreted as an integer
E
E       from user code:
E          File "/scratch/ybliang/work/repos/pytorch-jit-paritybench/generated/test_clovaai_stargan_v2.py", line 335, in forward
E           idx = torch.LongTensor(range(y.size(0)))
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/89322
Approved by: https://github.com/jansel
2022-11-23 19:44:48 +00:00
..
__init__.py [dynamo] Port all pytorch/dynamo and test/dynamo pieces over from symbolic-shapes branch (#88768) 2022-11-13 04:50:21 +00:00
base.py [dynamo] mutable local caching to make dynamo faster at tracing mutation (#89170) 2022-11-19 01:47:48 +00:00
builder.py [Dynamo] Fix several bugs & code refactor in RangeVariable (#89322) 2022-11-23 19:44:48 +00:00
builtin.py [Dynamo] Fix several bugs & code refactor in RangeVariable (#89322) 2022-11-23 19:44:48 +00:00
constant.py [dynamo] Port all pytorch/dynamo and test/dynamo pieces over from symbolic-shapes branch (#88768) 2022-11-13 04:50:21 +00:00
dicts.py [dynamo] mutable local caching to make dynamo faster at tracing mutation (#89170) 2022-11-19 01:47:48 +00:00
functions.py [Dynamo] Support typing.Mapping & Support function as argument (#88963) 2022-11-17 06:57:42 +00:00
lists.py [Dynamo] Fix several bugs & code refactor in RangeVariable (#89322) 2022-11-23 19:44:48 +00:00
misc.py [dynamo] mutable local caching to make dynamo faster at tracing mutation (#89170) 2022-11-19 01:47:48 +00:00
nn_module.py [dynamo] Port all pytorch/dynamo and test/dynamo pieces over from symbolic-shapes branch (#88768) 2022-11-13 04:50:21 +00:00
tensor.py [Dynamo] Several fixes on TensorVariable & TorchVariable (#89486) 2022-11-23 19:39:45 +00:00
torch.py [Dynamo] Several fixes on TensorVariable & TorchVariable (#89486) 2022-11-23 19:39:45 +00:00
user_defined.py [Dynamo] Add a dummy profiler to avoid activating real profiler (#88930) 2022-11-16 19:08:49 +00:00