trunk/5dcd9df0140aae22a6bc1809ec6e8e1bdde5bf60: Make iinfo and finfo hashable (#193290)
- PyTorch 近 90 天出现 164 次
- PyTorch 近 90 天第 162 次发版
- 上一次:同一天稍早 · ciflow/trunk/195079: [dynamo] Decode minifier subprocess output leniently in isolate_fails
发生了什么
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…
摘要按规则整理自下方来源原文