Skip to content

Commit

Permalink
use linear activation in lstm peephole
Browse files Browse the repository at this point in the history
  • Loading branch information
plliao committed Jun 23, 2017
1 parent c6dc0fa commit cc3fc94
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 cc3fc94

Please sign in to comment.