Created
May 25, 2020 22:30
-
-
Save eustin/11baa343b6c9373a62a2a718aabea48a to your computer and use it in GitHub Desktop.
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
snoopy_vs_beagle = tf.sqrt(tf.reduce_sum(tf.square(embeddings[0] - embeddings[3]))) | |
snoopy_vs_is = tf.sqrt(tf.reduce_sum(tf.square(embeddings[0] - embeddings[1]))) | |
print(snoopy_vs_beagle.numpy()) | |
print(snoopy_vs_is.numpy()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment