Skip to content

Instantly share code, notes, and snippets.

@eustin
Created June 8, 2020 04:33
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/af51dffcc826bb5b4463915ac938354e to your computer and use it in GitHub Desktop.
Save eustin/af51dffcc826bb5b4463915ac938354e to your computer and use it in GitHub Desktop.
scores_for_softmax = tf.squeeze(scores_out, axis=-1)
scores_prob_dist = tf.nn.softmax(scores_for_softmax, axis=-1)
print(scores_prob_dist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment