Files
ComfyUI/comfy
Deep Mehta 7db81e43df fix: prevent autocast crash in WAN model addcmul ops
Wraps torch.addcmul calls in WAN attention blocks with autocast-disabled
context to prevent 'Unexpected floating ScalarType in at::autocast::prioritize'
RuntimeError. This occurs when upstream nodes (e.g. SAM3) leave CUDA autocast
enabled - PyTorch 2.8's autocast promote dispatch for addcmul hits an unhandled
dtype in the prioritize function.

Uses torch.is_autocast_enabled(device_type) (non-deprecated API) and only
applies the workaround when autocast is actually active (zero overhead otherwise).
2026-04-09 21:08:49 -07:00
..
2024-06-27 18:43:11 -04:00
2026-02-26 01:30:31 -05:00
2025-01-24 06:15:54 -05:00
2026-03-14 18:36:29 -04:00
2025-07-06 07:07:39 -04:00
2026-01-01 22:06:14 -05:00
2026-03-14 18:36:29 -04:00