def METHOD_NAME(self, inputs, states):
  prev_output = states[0]
  h = keras.backend.dot(inputs, self.kernel)
  output = h + keras.backend.dot(prev_output, self.recurrent_kernel)
  return output, [output]