We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dcf6c3 commit 04b6febCopy full SHA for 04b6feb
dalle_pytorch/dalle_pytorch.py
@@ -557,6 +557,10 @@ def forward(
557
seq_len -= 1
558
tokens = tokens[:, :-1]
559
560
+ if self.stable:
561
+ alpha = 0.1
562
+ tokens = tokens * alpha + tokens.detach() * (1 - alpha)
563
+
564
out = self.transformer(tokens)
565
566
if self.stable:
setup.py
@@ -4,7 +4,7 @@
4
name = 'dalle-pytorch',
5
packages = find_packages(),
6
include_package_data = True,
7
- version = '1.1.0',
+ version = '1.1.1',
8
license='MIT',
9
description = 'DALL-E - Pytorch',
10
author = 'Phil Wang',
0 commit comments