trunk/1262373559702d74037ce47d88078611f7b050f5: [dynamo] Support constant non-string assert messages (#197798)
- PyTorch 近 90 天出现 1358 次
- PyTorch 近 90 天第 1341 次发版
- 上一次:同一天稍早 · trunk/6bb7f663e51d5c8007e9fe43ba1ecbaf017b50ef: [dynamo] Validate getattr arguments before dispatch (#196526)
发生了什么
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…
摘要按规则整理自下方来源原文