← Back to events
ActiveAIRelease

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

Photo: PyTorch Releases

What happened

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…

Summary assembled by rule from the sources below

Why it's spreading

Sources