yanwii / dynamic-seq2seq

seq2seq中文聊天机器人
336 stars 136 forks source link

encoder_state return Tuple type #4

Closed lkluo closed 7 years ago

lkluo commented 7 years ago

how to Concatenate the final state? I tried tf.concat((encoder_fw_state, encoder_bw_state), 2), but it return error. thanks.

lkluo commented 7 years ago

I figured out the issue. Since I was using multi-rnn, the last encoder_state shall be used to feed into the decoder.