viable/strict/1787643145: [dynamo] Support types.SimpleNamespace (#193719)
- PyTorch: 37 events in the last 90 days
- PyTorch: 37th Release in the last 90 days
- Previous: earlier the same day · trunk/cf8577d42b4750c22ad369fd8cef2b8e84bce74e: [CI] Add sm80 to the clang20 CUDA pull builds' arch list (#194685)
What happened
Summary Dynamo has no model of types.SimpleNamespace . Its C tp_new is not on the allowlist in UserDefinedClassVariable.supported_c_new_functions , so constructing one graph-breaks before anything downstream runs, and all 17 tests in SimpleNamespaceTests are on the expected-failure list because of it. The type keeps a plain instance dict and inherits __getattribute__ , __setattr__ and __delattr__ from object , so at…
Summary assembled by rule from the sources below