Open rosefun opened 6 years ago
https://github.com/for-research/cnn-text-classification-tf/blob/18762b459e21d9c70e5c242f8d43fc4e6db37a0d/text_cnn.py#L57
''' self.h_pool = tf.concat(pooled_outputs, 3) '''
Why it concats in axis = 3? Actually, I think it should concat in axis = 1 , which is the direction of the text length.
axis = 3
axis = 1
https://github.com/for-research/cnn-text-classification-tf/blob/18762b459e21d9c70e5c242f8d43fc4e6db37a0d/text_cnn.py#L57
''' self.h_pool = tf.concat(pooled_outputs, 3) '''
Why it concats in
axis = 3
? Actually, I think it should concat inaxis = 1
, which is the direction of the text length.