fix: check for version compatibility before calling PyTorch method

This commit is contained in:
nota-rudveld 2025-10-20 17:28:14 -04:00 committed by GitHub
parent e941d04d87
commit c1c044c8cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ import comfy.rmsnorm
import contextlib
def run_every_op():
if torch.compiler.is_compiling():
if comfy.model_management.torch_version_numeric >= (2, 3) and torch.compiler.is_compiling():
return
comfy.model_management.throw_exception_if_processing_interrupted()