viable/strict/1789816992: [dynamo] Match CPython semantics in operator.length_hint (#196901)
- PyTorch 近 90 天出现 1199 次
- PyTorch 近 90 天第 1185 次发版
- 上一次:同一天稍早 · viable/strict/1789811432: [distributed] Resolve checkpoint test futures without sleeping (#197638)
发生了什么
Summary Fixes silent divergences between eager and torch.compile in operator.length_hint , which is used on the hot path by list.extend , list.__init__ , deque , and _PyList_AppendTakeRef -style preallocation. ( #195901 ) Divergences Dynamo's BuiltinVariable.call_length_hint returned the raw __length_hint__ result and did not implement the post-processing of CPython's PyObject_LengthHint ( Objects/abstract.c ). Four…
摘要按规则整理自下方来源原文