import tensorflow as tf

        p = tf.cond(tf.random_uniform((), dtype=tf.float32) < 1e-4,
                    lambda: tf.print('csrt acc ', [pct]),
                    lambda: tf.no_op())
        with tf.control_dependencies([p]):
            return tf.reduce_mean(loss)

