← Back to events
ActiveAIRelease3.13

trunk/6bb7f663e51d5c8007e9fe43ba1ecbaf017b50ef: [dynamo] Validate getattr arguments before dispatch (#196526)

Photo: PyTorch Releases

What happened

Summary Part of #195901 . GetAttrBuiltinVariable accessed positional arguments before validating getattr() calls. Too few arguments could raise an internal IndexError , excess arguments could be silently ignored, and keyword arguments were not rejected before dispatch. Non-string attribute names could also surface as internal Dynamo errors. This change uses no_keywords and check_positional to match CPython’s argumen…

Summary assembled by rule from the sources below

Why it's spreading

Sources