def adjust_quantize_info(
    model,
    adjust_vitis_sigmoid=True,
    adjust_shift_cut=True,
    adjust_shift_bias=True,
    adjust_shift_read=True,
    adjust_shift_write=True,
    align_concat=True,
    align_pool=True,
):
    """Adjust the quantize info to meet the compiler constraints."""

    manager = QuantPosManager(model)

    if adjust_vitis_sigmoid:
        manager.adjust_vitis_sigmoid()

    if adjust_shift_read:
        manager.adjust_shift_read()

    if adjust_shift_write:
        manager.adjust_shift_write()

    if adjust_shift_cut:
        manager.adjust_shift_cut()

    if adjust_shift_bias:
        manager.adjust_shift_bias()

    if align_concat:
        manager.align_concat()

    if align_pool:
        manager.align_pool()

    manager.check_scale()
    return manager.model
Adjust the quantize info to meet the compiler constraints.
olive/passes/onnx/vitis_ai/refine.py