Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created January 19, 2018 23:25
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 JoshVarty/c039f0fe8d4f62224231b74ee04ffe2a to your computer and use it in GitHub Desktop.
Save JoshVarty/c039f0fe8d4f62224231b74ee04ffe2a to your computer and use it in GitHub Desktop.
predictions = tf.nn.softmax(logits)
correct_prediction = tf.equal(tf.argmax(labels, 1), tf.argmax(predictions, 1))
accuracy = tf.reduce_mean(tf.cast(correct_prediction, tf.float32))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment