import tensorflow as tf

      * tf.add_n([tf.nn.l2_loss(var) for var in trainable_vars if loss_filter(var)])
    accuracy = tf.reduce_mean(
      tf.cast(tf.equal(tf.argmax(labels, axis=1), tf.argmax(outputs, axis=1)), tf.float32))
    metrics = {'accuracy': accuracy}
