Skip to content

Instantly share code, notes, and snippets.

@eustin
Created May 25, 2020 22:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eustin/11baa343b6c9373a62a2a718aabea48a to your computer and use it in GitHub Desktop.
Save eustin/11baa343b6c9373a62a2a718aabea48a to your computer and use it in GitHub Desktop.
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