← 返回事件
持续讨论AI发版

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

图:PyTorch Releases

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源