trunk/1262373559702d74037ce47d88078611f7b050f5: [dynamo] Support constant non-string assert messages (#197798)
- PyTorch: 1356 events in the last 90 days
- PyTorch: 1339th Release in the last 90 days
- Previous: earlier the same day · trunk/6bb7f663e51d5c8007e9fe43ba1ecbaf017b50ef: [dynamo] Validate getattr arguments before dispatch (#196526)
What happened
Update: Following review, I removed the AssertionError special handling entirely. AssertionError now uses Dynamo's generic exception path, and the existing tensor-message test verifies that no graph break occurs. The original description below reflects the initial implementation. Dynamo only allowed constant string arguments when constructing an AssertionError . Python permits any object as an assertion message, so…
Summary assembled by rule from the sources below