Skip to content

Instantly share code, notes, and snippets.

@Simsso
Created July 6, 2018 13:26
Show Gist options
  • Select an option

  • Save Simsso/3e4aa130ec94a705b41d533950d7695e to your computer and use it in GitHub Desktop.

Select an option

Save Simsso/3e4aa130ec94a705b41d533950d7695e to your computer and use it in GitHub Desktop.
TensorFlow Classification Accuracy Op
acc = tf.reduce_mean(tf.cast(tf.equal(tf.argmax(softmax, axis=1), tf.cast(labels, tf.int64)), 'float'), name='acc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment