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

trunk/058ee834dbcb06c54b83bbf3ca23f0e41d6c1285: [PyTorch] Handle reserved keyword arguments in FX codegen (#199930)

图:PyTorch Releases

发生了什么

Summary: FX Node.kwargs keys are arbitrary strings, but Python call syntax only permits identifiers that are not reserved keywords in the form name=value. FX code generation currently renders every entry that way. A graph containing a key such as "from" therefore generates invalid Python (from = value) and GraphModule recompilation fails with SyntaxError. Non-identifiers such as "not-an-identifier" have the same pro…

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

为什么在扩散

来源