← 返回事件
持续讨论AI发版

viable/strict/1788209416: [dynamo] Migrate DictBuiltinVariable.fromkeys to tp_methods (#195181)

图:PyTorch Releases

发生了什么

Summary Part of the VariableTracker migration tracked in #195165 . Move DictBuiltinVariable.fromkeys from an ad-hoc call_method branch onto the declarative tp_methods table. ListBuiltinVariable is unchanged: its remaining call_method logic is only __new__ , which the issue intentionally leaves out of tp_methods (tp_new slot). Unbound dict method forwarding ( dict.update(d, ...) , etc.) stays in call_method because i…

摘要按规则整理自下方来源原文

为什么在扩散

来源