trunk/6bb7f663e51d5c8007e9fe43ba1ecbaf017b50ef: [dynamo] Validate getattr arguments before dispatch (#196526)
- PyTorch: 1356 events in the last 90 days
- PyTorch: 1339th Release in the last 90 days
- Previous: earlier the same day · trunk/c8bb60779d0c8878e64a0b20b74fc66643f2baba: [MPS] Keep stream command-buffer state on the serial queue (#197836)
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