f = self.gate_activation.forward(np.dot(x_now, self.U_f) +
                                             np.dot(h_pre, self.W_f) +
                                             self.b_f)