def _div(lhs, rhs):
    if lhs.dtype.is_integer:
        quotient = tf.math.floordiv(lhs, rhs)
        select = tf.math.logical_and(tf.not_equal(_sign(lhs), _sign(rhs)), tf.not_equal(tf.math.floormod(lhs, rhs), 0))
        return tf.where(select, (quotient + 1), quotient)
    else:
        return tf.math.truediv(lhs, rhs)
def _div(lhs, rhs):
    if lhs.dtype.is_integer:
        quotient = tf.math.floordiv(lhs, rhs)
        select = tf.math.logical_and(tf.not_equal(_sign(lhs), _sign(rhs)), tf.not_equal(tf.math.floormod(lhs, rhs), 0))
        return tf.where(select, (quotient + 1), quotient)
    else:
        return tf.math.truediv(lhs, rhs)