Update model.py
Browse files
model.py
CHANGED
@@ -969,13 +969,13 @@ class TextDecoder(nn.Module):
|
|
969 |
|
970 |
for f in order:
|
971 |
if f in enc:
|
972 |
-
|
973 |
xa = enc[f]
|
974 |
for block in self.blocks[f]:
|
975 |
out = block(x=x, xa=xa, mask=None, enc=None, layer=layer)
|
976 |
|
977 |
if sequential:
|
978 |
-
x =
|
979 |
else:
|
980 |
a = torch.sigmoid(bln[f])
|
981 |
x = a * out + (1 - a) * x
|
|
|
969 |
|
970 |
for f in order:
|
971 |
if f in enc:
|
972 |
+
|
973 |
xa = enc[f]
|
974 |
for block in self.blocks[f]:
|
975 |
out = block(x=x, xa=xa, mask=None, enc=None, layer=layer)
|
976 |
|
977 |
if sequential:
|
978 |
+
x = out
|
979 |
else:
|
980 |
a = torch.sigmoid(bln[f])
|
981 |
x = a * out + (1 - a) * x
|