mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-24 21:40:50 +08:00
Disable offload stream when torch compile.
This commit is contained in:
parent
52e778fff3
commit
6304b25091
@ -1042,6 +1042,9 @@ def get_offload_stream(device):
|
||||
if NUM_STREAMS == 0:
|
||||
return None
|
||||
|
||||
if torch.compiler.is_compiling():
|
||||
return None
|
||||
|
||||
if device in STREAMS:
|
||||
ss = STREAMS[device]
|
||||
#Sync the oldest stream in the queue with the current
|
||||
|
||||
Loading…
Reference in New Issue
Block a user