Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: pytorch/pytorch#145554 Approved by: https://github.com/anijain2305 ghstack dependencies: #145551, #145552, #145553 Reviewed By: ZainRizvi Differential Revision: D68924393 fbshipit-source-id: 82fa9bd3f62df08df9ed80c08e98426f61d12f5e
- Loading branch information