trunk/2362f26442c3f226c26e2b52303485c3ed278d87: Extend accelerator graph-capture health check beyond CUDA/XPU (#194362)
- PyTorch 近 90 天出现 138 次
- PyTorch 近 90 天第 137 次发版
- 上一次:同一天稍早 · viable/strict/1787858428
发生了什么
Summary _accelerator_graph_capture_health_check() gated its whole body behind if accelerator and accelerator.type in {"cuda", "xpu"}: , but everything inside that block is already backend-agnostic: torch.accelerator.current_stream().is_capturing() and accelerator.type.upper() in the warning/error messages both work for any accelerator already. That gate traces back to #180453 , which modernized this function's inter…
摘要按规则整理自下方来源原文