mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 14:50:49 +08:00
fix: check for version compatibility before calling PyTorch method
This commit is contained in:
parent
e941d04d87
commit
c1c044c8cb
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user