mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-19 02:40:15 +08:00
Update cfz_cudnn.toggle.py
This commit is contained in:
parent
21d999a13a
commit
fbaca3d17b
@ -23,6 +23,7 @@ class CUDNNToggleAutoPassthrough:
|
|||||||
|
|
||||||
def toggle(self, enable_cudnn, model=None, conditioning=None, latent=None, audio=None, image=None):
|
def toggle(self, enable_cudnn, model=None, conditioning=None, latent=None, audio=None, image=None):
|
||||||
torch.backends.cudnn.enabled = enable_cudnn
|
torch.backends.cudnn.enabled = enable_cudnn
|
||||||
|
torch.backends.cudnn.benchmark = enable_cudnn
|
||||||
print(f"[CUDNN_TOGGLE] torch.backends.cudnn.enabled set to {enable_cudnn}")
|
print(f"[CUDNN_TOGGLE] torch.backends.cudnn.enabled set to {enable_cudnn}")
|
||||||
|
|
||||||
return_tuple = (None, None, None, None, None)
|
return_tuple = (None, None, None, None, None)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user