← Back to events
ActiveAIRelease

viable/strict/1787643145: [dynamo] Support types.SimpleNamespace (#193719)

Photo: PyTorch Releases

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

Why it's spreading

Sources