import tensorflow as tf


def categorical_accuracy(y_true, y_pred):
    return tf.reduce_mean(tf.cast(tf.equal(tf.argmax(y_true, axis=-1), tf.
        argmax(y_pred, axis=-1)), tf.float32))

17a887cb4d70a94f4443bb49849ce8d29a7ce2fa
<mask token>

<mask token>


def categorical_accuracy(y_true, y_pred):
    return tf.reduce_mean(tf.cast(tf.equal(tf.argmax(y_true, axis=-1), tf.
        argmax(y_pred, axis=-1)), tf.float32))

import tensorflow as tf


def categorical_accuracy(y_true, y_pred):
    return tf.reduce_mean(tf.cast(tf.equal(tf.argmax(y_true, axis=-1), tf.
        argmax(y_pred, axis=-1)), tf.float32))
