mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-12 21:36:41 +08:00
Merge 1ce987cf52c84517e06ea43ec0564590a0b83e9e into 9da397ea2f271080406f0c14cf4f0db7221ddf70
This commit is contained in:
commit
6e9e7fb734
@ -68,6 +68,9 @@ except:
|
|||||||
cast_to = comfy.model_management.cast_to #TODO: remove once no more references
|
cast_to = comfy.model_management.cast_to #TODO: remove once no more references
|
||||||
|
|
||||||
if torch.cuda.is_available() and torch.backends.cudnn.is_available() and PerformanceFeature.AutoTune in args.fast:
|
if torch.cuda.is_available() and torch.backends.cudnn.is_available() and PerformanceFeature.AutoTune in args.fast:
|
||||||
|
import sys
|
||||||
|
# Skip CUDNN benchmark on Python 3.12 due to VRAM allocation issues with model wrappers
|
||||||
|
if sys.version_info[:2] != (3, 12):
|
||||||
torch.backends.cudnn.benchmark = True
|
torch.backends.cudnn.benchmark = True
|
||||||
|
|
||||||
def cast_to_input(weight, input, non_blocking=False, copy=True):
|
def cast_to_input(weight, input, non_blocking=False, copy=True):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user