trunk/77e2446a88a185f32ef15b71db95fd055e25ffda: [dynamo] Trace torch.overrides.handle_torch_function (#196055)
- PyTorch 近 90 天出现 1958 次
- PyTorch 近 90 天第 1932 次发版
- 上一次:同一天稍早 · trunk/6a3a43fbf2d65204345bdb1789a02a4c0142d821: [Inductor] Match eager float-to-int narrowing in strict modes (#199788)
发生了什么
torch.overrides.handle_torch_function is how Python-level functions participate in __torch_function__ dispatch. Dynamo tried to inline its body, which touches the C mode stack directly and fails. It is now a TorchInGraphFunctionVariable whose handler forwards to dispatch_torch_function , which gained a relevant_args parameter so that overload resolution only considers the objects the caller passed, as the eager impl…
摘要按规则整理自下方来源原文