trunk/91655aa6a90a357ee8b47a4ac15ec7257f505526: [dynamo] Support types.SimpleNamespace (#193719)
- PyTorch 近 90 天出现 23 次
- PyTorch 近 90 天第 23 次发版
- 上一次:同一天稍早 · trunk/cf8577d42b4750c22ad369fd8cef2b8e84bce74e: [CI] Add sm80 to the clang20 CUDA pull builds' arch list (#194685)
发生了什么
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…
摘要按规则整理自下方来源原文