From c1c044c8cb8ff05e31fd51b369c30d2202689007 Mon Sep 17 00:00:00 2001 From: nota-rudveld Date: Mon, 20 Oct 2025 17:28:14 -0400 Subject: [PATCH] fix: check for version compatibility before calling PyTorch method --- comfy/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/ops.py b/comfy/ops.py index 934e21261..1565b1942 100644 --- a/comfy/ops.py +++ b/comfy/ops.py @@ -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()