def normalize(v):
    try:
        return tf.truediv(v, tf.cast(self._num_microbatches, tf.float32))
    except TypeError:
        return None
def normalize(v):
    try:
        return tf.truediv(v, tf.cast(self._num_microbatches, tf.float32))
    except TypeError:
        return None