viable/strict/1789410678: [dynamo] Migrate SymNodeVariable methods to tp_methods (#195189)
- PyTorch 近 90 天出现 935 次
- PyTorch 近 90 天第 924 次发版
- 上一次:同一天稍早 · viable/strict/1789406619
发生了什么
Summary Migrate SymNodeVariable named methods onto declarative tp_methods , as in #195165 . as_integer_ratio / bit_length / conjugate / has_hint / hex / is_integer are now Method handlers (shared FX-proxy). __int__ uses the existing nb_int_impl path (named int_ so it does not shadow Python's __int__ ). Arithmetic dunders stay on number slots. call_method keeps a generic FX-proxy fallback so unlisted names still disp…
摘要按规则整理自下方来源原文