def _shift_right_arithmetic(x, y):
    x_bits = (8 * x.dtype.size)
    clamp_y = tf.where(_shift_in_bounds(x, y), y, (x_bits - 1))
    return _shift_right_arithmetic_raw(x, clamp_y)
def _shift_right_arithmetic(x, y):
    x_bits = (8 * x.dtype.size)
    clamp_y = tf.where(_shift_in_bounds(x, y), y, (x_bits - 1))
    return _shift_right_arithmetic_raw(x, clamp_y)