def reset_state(self): for layer in self: layer.reset_state() # ?? encoder ? decoder ??????????beam search??? # ???LSTM?????????????????????