mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[dynamo] Graph break on on user-defined class in compiled region (#161670)
Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: https://github.com/pytorch/pytorch/pull/161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
This commit is contained in:
committed by
PyTorch MergeBot
parent
dda071587f
commit
5ac112b569
1
test/dynamo_skips/TestPythonPytree.test_key_str
Normal file
1
test/dynamo_skips/TestPythonPytree.test_key_str
Normal file
@ -0,0 +1 @@
|
||||
Passes under python 3.10, fails under 3.13
|
Reference in New Issue
Block a user