mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-17 00:43:48 +08:00
Merge 1ce987cf52 into 9da397ea2f
This commit is contained in:
commit
6e9e7fb734
@ -68,7 +68,10 @@ except:
|
||||
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:
|
||||
torch.backends.cudnn.benchmark = True
|
||||
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
|
||||
|
||||
def cast_to_input(weight, input, non_blocking=False, copy=True):
|
||||
return comfy.model_management.cast_to(weight, input.dtype, input.device, non_blocking=non_blocking, copy=copy)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user