← Back to events
ActiveAIRelease

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

Photo: PyTorch Releases

What happened

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…

Summary assembled by rule from the sources below

Why it's spreading

Sources