quora-duplicate-questions icon indicating copy to clipboard operation
quora-duplicate-questions copied to clipboard

concat failed. Before concat do not need to tf.tile?

Open Fisher87 opened this issue 5 years ago • 0 comments

https://github.com/sjvasquez/quora-duplicate-questions/blob/d93a4bd5edf8327bd5ed7900107ca18bf8bb2b2f/attend.py#L94

a = tf.tile(tf.expand_dims(a, 2), [1, 1, seq_len, 1])
b = tf.tile(tf.expand_dims(b, 1), [1, seq_len, 1, 1])
c = tf.concat([a, b], axis=-1)```

Fisher87 avatar Dec 27 '19 05:12 Fisher87