liuyuemaicha / Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow

Adversarial-Learning-for-Neural-Dialogue-Generation-in-Tensorflow
http://blog.csdn.net/liuyuemaicha/article/details/60581187
187 stars 75 forks source link

弱弱地问个问题。。。 #15

Closed yantingxu closed 6 years ago

yantingxu commented 6 years ago

disc/hier_rnn_model.py文件中第42-43行

query_output, query_state = tf.nn.rnn(encoder_emb, inputs=self.query[:bucket[0]], dtype=tf.float32)

output [max_len, batch_size, emb_dim] state [num_layer, 2, batch_size, emb_dim]

其中的state的第二维为啥是2?

yantingxu commented 6 years ago

明白了。。。关