Skip to content

Commit 42bf374

Browse files
fix: cross attention skip connection
1 parent d60eefa commit 42bf374

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

audio_diffusion_pytorch/modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def __init__(
421421
def forward(self, x: Tensor, *, context: Optional[Tensor] = None) -> Tensor:
422422
x = self.attention(x) + x
423423
if self.use_cross_attention:
424-
x = self.cross_attention(x, context=context)
424+
x = self.cross_attention(x, context=context) + x
425425
x = self.feed_forward(x) + x
426426
return x
427427

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setup(
44
name="audio-diffusion-pytorch",
55
packages=find_packages(exclude=[]),
6-
version="0.0.44",
6+
version="0.0.45",
77
license="MIT",
88
description="Audio Diffusion - PyTorch",
99
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)