trunk/2362f26442c3f226c26e2b52303485c3ed278d87: Extend accelerator graph-capture health check beyond CUDA/XPU (#194362)
- PyTorch: 2304 events in the last 90 days
- PyTorch: 2274th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1787858428
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