Skip to content

Instantly share code, notes, and snippets.

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