← Back to events
ActiveAIRelease

viable/strict/1788542608: [dynamo] Migrate NNModuleVariable methods to tp_methods (#195193)

Photo: PyTorch Releases

What happened

Summary Migrate the remaining NNModuleVariable named methods onto declarative tp_methods , as in #195165 . Keep call_method for the Dynamo-internal constant= path and the all-tensor FX-proxy heuristic so getattr and unlisted methods stay on the same path. __contains__ / in use the module's own __contains__ ( ParameterDict keys live in _keys , not _modules ). Part of #195165 (does not close the umbrella). Test plan p…

Summary assembled by rule from the sources below

Why it's spreading

Sources