pytorch/torch/_dynamo/variables
clr d100e9ae74 inductor: Don't throw an internal error when a nn.module is missing a attribute (#145122)
If a nn.module getattr call throws, we should make sure that we don't crash with an internal error

Note that I couldn't figure out how to test this, so advice would be awesome.  I have my best case attempt at  https://github.com/pytorch/pytorch/pull/145799, but it doesn't seem to reproduce the crash.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/145122
Approved by: https://github.com/jansel
2025-01-30 21:55:29 +00:00
..
__init__.py [dynamo][builtin-skipfile-cleanup] Support tuple.__new__ (#145558) 2025-01-27 21:42:43 +00:00
base.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
builder.py [dynamo][builtin-skipfile-cleanup] Support tuple.__new__ (#145558) 2025-01-27 21:42:43 +00:00
builtin.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
constant.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
ctx_manager.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
dicts.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
distributed.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
functions.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
higher_order_ops.py [hop] fix unbacked_bindings meta for while_loop (#143559) 2025-01-30 21:33:09 +00:00
iter.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
lazy.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
lists.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00
misc.py Revert "[dynamo] save/restore system random state more carefully (#145750)" 2025-01-28 20:51:07 +00:00
nn_module.py inductor: Don't throw an internal error when a nn.module is missing a attribute (#145122) 2025-01-30 21:55:29 +00:00
optimizer.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
script_object.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
sdpa.py [dynamo] Simplify creation of VariableTrackers (#135714) 2024-10-18 09:36:46 +00:00
tensor.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
torch_function.py PEP585 update - torch/_dynamo (#145105) 2025-01-18 20:47:11 +00:00
torch.py [dynamo] Properly model torch profiler context objects (#145537) 2025-01-28 00:03:36 +00:00
user_defined.py Revert "[dynamo] Use polyfill to implement comparison operators (#144485)" 2025-01-29 21:30:42 +00:00