Skip to content

Commit

Permalink
Merge pull request #40 from Yoctol/LSTMPeephole_linear_activation
Browse files Browse the repository at this point in the history
use linear activation in lstm peephole
  • Loading branch information
plliao authored Jun 23, 2017
2 parents c6dc0fa + cc3fc94 commit 5eae44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yklz/recurrent/lstm_peephole.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def step(self, inputs, states):
o = self.recurrent_activation(
x_o + K.dot(c_tm1 * rec_dp_mask[3], self.recurrent_kernel_o)
)
h = o * self.activation(c)
h = o * c
if 0 < self.dropout + self.recurrent_dropout:
h._uses_learning_phase = True
return h, [h, c]

0 comments on commit 5eae44a

Please sign in to comment.