trunk/058ee834dbcb06c54b83bbf3ca23f0e41d6c1285: [PyTorch] Handle reserved keyword arguments in FX codegen (#199930)
- PyTorch 近 90 天出现 1995 次
- PyTorch 近 90 天第 1968 次发版
- 上一次:同一天稍早 · trunk/dbb3587d86946784cc4652cc236f44151dc63fef: Mark unused parameters in lazy (#199465)
发生了什么
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…
摘要按规则整理自下方来源原文