mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-13 02:36:59 +08:00
Update attention.py
This commit is contained in:
parent
cb97d53be2
commit
cffa8684e6
@ -24,9 +24,9 @@ FORCE_UPCAST_ATTENTION_DTYPE = model_management.force_upcast_attention_dtype()
|
|||||||
def get_attn_precision(attn_precision):
|
def get_attn_precision(attn_precision):
|
||||||
if args.dont_upcast_attention:
|
if args.dont_upcast_attention:
|
||||||
return None
|
return None
|
||||||
if FORCE_UPCAST_ATTENTION_DTYPE is None:
|
if FORCE_UPCAST_ATTENTION_DTYPE is not None:
|
||||||
return attn_precision
|
return FORCE_UPCAST_ATTENTION_DTYPE
|
||||||
return FORCE_UPCAST_ATTENTION_DTYPE
|
return attn_precision
|
||||||
|
|
||||||
|
|
||||||
# feedforward
|
# feedforward
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user