Fix torch compile.

This commit is contained in:
comfyanonymous 2025-10-17 19:58:04 -04:00 committed by GitHub
parent b434014d78
commit 37a0b12754
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):