Fix in-place addition of patch_embds ()

This commit is contained in:
Hanna 2025-03-21 00:46:32 +01:00 committed by GitHub
parent fc946a1918
commit 2dcf48bdd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -308,8 +308,7 @@ class LocalEncoder(LocalModelBase):
kv=h,
mask=cross_mask,
)
patch_embeds += patch_embeds_cross
return patch_embeds
return patch_embeds + patch_embeds_cross
class LocalDecoder(LocalModelBase):