Skip to content

Instantly share code, notes, and snippets.

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