viable/strict/1788983430: Make iinfo and finfo hashable (#193290)
- PyTorch 近 90 天出现 729 次
- PyTorch 近 90 天第 719 次发版
- 上一次:同一天稍早 · trunk/81deebd0497f96495b563af4155b99b372d8022c
发生了什么
iinfo and finfo compare by their stored ScalarType but did not define a matching hash. This made generated Python code objects unhashable when Dynamo preserved type-info values across graph breaks. Hash the same ScalarType field used by equality, and re-enable the integer clamp test under Dynamo. Allows one to use torch.iinfo with torch.compile (see #193288 for more details) Authored with assistance from Codex, an A…
摘要按规则整理自下方来源原文