def accuracy(logits, labels):
    preds = tf.argmax(logits, axis=1)
    return tf.reduce_mean(tf.to_float(tf.equal(preds, labels)))
def accuracy(logits, labels):
    preds = tf.argmax(logits, axis=1)
    return tf.reduce_mean(tf.to_float(tf.equal(preds, labels)))