From 938f824aae43816ef5d3e0ef15ed1d0b3be57268 Mon Sep 17 00:00:00 2001 From: shawnington <88048838+shawnington@users.noreply.github.com> Date: Mon, 3 Jun 2024 12:23:47 -0700 Subject: [PATCH] fixed typo in function --- comfy/ldm/modules/attention.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy/ldm/modules/attention.py b/comfy/ldm/modules/attention.py index d03944c99..363dd89bb 100644 --- a/comfy/ldm/modules/attention.py +++ b/comfy/ldm/modules/attention.py @@ -105,8 +105,8 @@ def attention_basic(q, k, v, heads, mask=None, attn_precision=None): ) # force cast to fp32 to avoid overflowing if args.dont_upcast_attention is not set - sim = einsum('b i d, b j d -> b i j', q.to(dtype=cast_to_type), k.to(dtype=cast_to_type) * scale - + sim = einsum('b i d, b j d -> b i j', q.to(dtype=cast_to_type), k.to(dtype=cast_to_type)) * scale + del q, k if exists(mask):