Skip to content

Commit a58a370

Browse files
committed
takes care of a grad strides error at #196 thanks to @YUHANG-Ma
1 parent 1662bbf commit a58a370

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dalle2_pytorch/dalle2_pytorch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,7 @@ def forward(
19261926
hiddens.append(x)
19271927

19281928
x = attn(x)
1929-
hiddens.append(x)
1929+
hiddens.append(x.contiguous())
19301930

19311931
if exists(post_downsample):
19321932
x = post_downsample(x)

dalle2_pytorch/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.24.1'
1+
__version__ = '0.24.2'

0 commit comments

Comments
 (0)