Sin2pi commited on
Commit
b68543d
·
verified ·
1 Parent(s): 58a7bb3

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -969,13 +969,13 @@ class TextDecoder(nn.Module):
969
 
970
  for f in order:
971
  if f in enc:
972
- seq = x
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 = seq
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