trunk/41d1dafad77d67ebbdcfcbb7228a7b179308ce45: I preserve Python equality semantics in Dynamo range.index (#196711)
- PyTorch 近 90 天出现 1361 次
- PyTorch 近 90 天第 1344 次发版
- 上一次:同一天稍早 · trunk/98aef867ad1f61e29d3959338e2458f69926b17b
发生了什么
torch.compile does not preserve Python's range.index() behavior. custom equality and numeric matches do not work consistently, this fix adddresses this. Issue Related to #195901 : test_range.py::RangeTest::test_index . I address this listed failure, not the entire tracking issue. Summary I preserve CPython's range.index() equality semantics in Dynamo: I keep the arithmetic fast path for exact integers and booleans,…
摘要按规则整理自下方来源原文