benchmark
3e5a389e - Fix dynamo use of `list[int]` in graph break (#145554)

Commit
362 days ago
Fix dynamo use of `list[int]` in graph break (#145554) Summary: This reintroduces the change backed out by #145393 and fixes the underlying problem. Although using a BuiltinVariable was better than nothing when we saw a GenericAlias it had problems if there was a graph break and we had to reconstruct the original python code which BuiltinVariable did as a simple `list` instead of a `list[int]`. This changes it to use a TypingVariable instead and then teaches TypingVariable how to reconstruct. Original commit changeset: 77b9193acb23 python test/dynamo/test_repros.py ReproTests.test_graph_break_on_jit_isinstance X-link: https://github.com/pytorch/pytorch/pull/145554 Approved by: https://github.com/anijain2305 ghstack dependencies: #145551, #145552, #145553 Reviewed By: ZainRizvi Differential Revision: D68924393 fbshipit-source-id: 82fa9bd3f62df08df9ed80c08e98426f61d12f5e
Author
Parents
Loading