diff --git a/comfy_extras/nodes/nodes_torch_compile.py b/comfy_extras/nodes/nodes_torch_compile.py index e6bcd545c..fe0d683a2 100644 --- a/comfy_extras/nodes/nodes_torch_compile.py +++ b/comfy_extras/nodes/nodes_torch_compile.py @@ -92,7 +92,10 @@ class TorchCompileModel(CustomNode): logging.warning("Encountered a model that cannot be compiled") return model, except OSError: - torch._inductor.utils.clear_inductor_caches() + try: + torch._inductor.utils.clear_inductor_caches() # pylint: disable=no-member + except Exception: + pass raise