Created
June 13, 2019 15:13
-
-
Save gaphex/ffa4652f15410a3103dda0d8f24caccb to your computer and use it in GitHub Desktop.
euclidean distance computation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| squared_distance = tf.reduce_sum(tf.pow(Q - S, 2), reduction_indices=1) | |
| distance = tf.sqrt(squared_distance) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment