mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-08 20:42:32 +08:00
Fixes the error when using torch.compile with bfloat16 inference:
'No backend can handle apply_rope1: eager: freqs_cis: dtype torch.bfloat16 not in {torch.float32}'
The apply_rope1 function uses addcmul_ in-place operations that fail
under torch.compile when freqs_cis is bfloat16. This restores the
behavior from commit
|
||
|---|---|---|
| .. | ||
| controlnet.py | ||
| model.py | ||