mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 01:36:41 +08:00
Enable Convolution AutoTuning
This commit is contained in:
parent
ff57793659
commit
b6d8805d00
@ -52,6 +52,9 @@ except (ModuleNotFoundError, TypeError):
|
|||||||
|
|
||||||
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():
|
||||||
|
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):
|
||||||
return comfy.model_management.cast_to(weight, input.dtype, input.device, non_blocking=non_blocking, copy=copy)
|
return comfy.model_management.cast_to(weight, input.dtype, input.device, non_blocking=non_blocking, copy=copy)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user