def get_bound_and_scale(pos, bit_width=8):
    """
    Obtain the scale and bound corresponding to the fixed-point position.
    """
    scale = np.power(2.0, -pos)
    lower_bound = -np.power(2, bit_width - 1) * scale
    upper_bound = np.power(2, bit_width - 1) * scale - scale
    return scale, lower_bound, upper_bound

    Obtain the scale and bound corresponding to the fixed-point position.
    
olive/passes/onnx/vitis_ai/quant_utils.py