code: def _cond(self, unused_x, unused_cumul_out, unused_prev_state,
              unused_cumul_state, cumul_halting, unused_iteration,
              unused_remainder):
      
      return tf.reduce_any(cumul_halting < 1)
docs: The `cond` of the `tf.while_loop`.