mohamedahraf273 commited on
Commit
1f6bbed
·
1 Parent(s): 2e4aa16

update decoder

Browse files
Files changed (1) hide show
  1. model/decoder.py +0 -3
model/decoder.py CHANGED
@@ -65,10 +65,7 @@ class Decoder(nn.Module):
65
 
66
  output = output.squeeze(1)
67
  embedded = embedded.squeeze(1)
68
-
69
  output_context = torch.cat((output, context, embedded), dim=1)
70
  output_context = self.layer_norm(output_context)
71
-
72
  prediction = self.fc_out(output_context)
73
-
74
  return prediction, decoder_hidden, decoder_cell, attention_weights
 
65
 
66
  output = output.squeeze(1)
67
  embedded = embedded.squeeze(1)
 
68
  output_context = torch.cat((output, context, embedded), dim=1)
69
  output_context = self.layer_norm(output_context)
 
70
  prediction = self.fc_out(output_context)
 
71
  return prediction, decoder_hidden, decoder_cell, attention_weights