Open Fisher87 opened 4 years ago
https://github.com/terrifyzhao/text_matching/blob/14c1a8f60aad822cd7029474b241bd6200a8782d/bimpm/graph.py#L57 这个地方应该有问题吧?是不是应该这样 tf.norm(metric1, axis=-1, keep_dims=True) * tf.transpose(tf.norm(metric2, axis=-1, keep_dims=True), perm=[0, 2, 1])
tf.norm(metric1, axis=-1, keep_dims=True) * tf.transpose(tf.norm(metric2, axis=-1, keep_dims=True), perm=[0, 2, 1])
https://github.com/terrifyzhao/text_matching/blob/14c1a8f60aad822cd7029474b241bd6200a8782d/bimpm/graph.py#L57 这个地方应该有问题吧?是不是应该这样
tf.norm(metric1, axis=-1, keep_dims=True) * tf.transpose(tf.norm(metric2, axis=-1, keep_dims=True), perm=[0, 2, 1])