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

trunk/2362f26442c3f226c26e2b52303485c3ed278d87: Extend accelerator graph-capture health check beyond CUDA/XPU (#194362)

图:PyTorch Releases

发生了什么

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…

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

为什么在扩散

来源