-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dynamo] No graph break on calling dict & collections.OrderedDict() #95250
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/95250
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit bf1d037: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch/pytorch#95250 Approved by: https://github.com/jansel
…#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch/pytorch#95250 Approved by: https://github.com/jansel
…#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch/pytorch#95250 Approved by: https://github.com/jansel
…#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch/pytorch#95250 Approved by: https://github.com/jansel
…#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch/pytorch#95250 Approved by: https://github.com/jansel
Fixes OrderedDict reconstruction issue found in #95250 with an attempt to fix it here #95725 Pull Request resolved: #95800 Approved by: https://github.com/yanboliang, https://github.com/clee2000
Fixes OrderedDict reconstruction issue found in pytorch/pytorch#95250 with an attempt to fix it here pytorch/pytorch#95725 Pull Request resolved: pytorch/pytorch#95800 Approved by: https://github.com/yanboliang, https://github.com/clee2000
Fixes OrderedDict reconstruction issue found in pytorch/pytorch#95250 with an attempt to fix it here pytorch/pytorch#95725 Pull Request resolved: pytorch/pytorch#95800 Approved by: https://github.com/yanboliang, https://github.com/clee2000
…#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch/pytorch#95250 Approved by: https://github.com/jansel
Fixes OrderedDict reconstruction issue found in pytorch/pytorch#95250 with an attempt to fix it here pytorch/pytorch#95725 Pull Request resolved: pytorch/pytorch#95800 Approved by: https://github.com/yanboliang, https://github.com/clee2000
I found that in the test_tristandeleu_pytorch_meta.py of the 14k github models projects, there will still be cases calling OrderedDict() with iterators args leading to graph break. I want to know if the case is likely to be supported. And if so, what are the general ideas? |
I found it has been fixed by #96122, thank you! |
…Dict() (pytorch#95250)" This reverts commit b5ff41a.
…ytorch#95250) It's common to call ```dict()``` or ```collections.OrderedDict()``` inside of ```forward``` function, so we should not graph break. This pattern has been used in many places including: * The use case in [torchvision]( https://github.com/pytorch/vision/blob/928b05cad36eadb13e169f03028767c8bcd1f21d/torchvision/models/_utils.py#L66-L73). * It causes ~100 model failures(nopython=True) in the 14k github models. * Also it hits several Meta internal use cases. Pull Request resolved: pytorch#95250 Approved by: https://github.com/jansel
It's common to call
dict()
orcollections.OrderedDict()
inside offorward
function, so we should not graph break.This pattern has been used in many places including:
cc @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire