pytorch/torch/_dynamo/variables
Edward Z. Yang 6fb6eb0a74 Support unspecialized integers with dynamic shapes (#89639)
Previously, we hackily wrapped unspecialized integers into
tensors and treated them as tensor inputs.  Sometimes, downstream
operations would not be able to deal with the tensor input.  Now,
we wrap them into SymInt, so more correct overload selection occurs.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/89639
Approved by: https://github.com/anjali411
2022-11-24 22:46:42 +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 Support unspecialized integers with dynamic shapes (#89639) 2022-11-24 22:46:42 +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] Fix bug of using customized torch.autograd.Function (#89397) 2022-11-24 05:28:58 +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 Remove fake_tensors_available (#89637) 2022-11-24 19:28:10 +00:00
torch.py Cond capture with fake tensors actually works; don't raise in this case (#89638) 2022-11-24 22:46:40 +00:00
user_defined.py [Dynamo] Add a dummy profiler to avoid activating real profiler (#88930) 2022-11-16 19:08:49 +00:00