mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-17 00:43:48 +08:00
Fix torch compile.
This commit is contained in:
parent
b434014d78
commit
37a0b12754
@ -25,6 +25,9 @@ import comfy.rmsnorm
|
|||||||
import contextlib
|
import contextlib
|
||||||
|
|
||||||
def run_every_op():
|
def run_every_op():
|
||||||
|
if torch.compiler.is_compiling():
|
||||||
|
return
|
||||||
|
|
||||||
comfy.model_management.throw_exception_if_processing_interrupted()
|
comfy.model_management.throw_exception_if_processing_interrupted()
|
||||||
|
|
||||||
def scaled_dot_product_attention(q, k, v, *args, **kwargs):
|
def scaled_dot_product_attention(q, k, v, *args, **kwargs):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user