Created
July 6, 2018 13:26
-
-
Save Simsso/3e4aa130ec94a705b41d533950d7695e to your computer and use it in GitHub Desktop.
TensorFlow Classification Accuracy Op
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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