def binary_op_configs(ops: _List[_Any]) -> _List[_BackendPatternConfig]:
    """
    Returns backend pattern configs for the following sequence of ops:

    input_1 -->
                  operator --> output
    input_2 -->

    where operator is a binary operator such as add, multiply or matmul.
    """
    return [
        _BackendPatternConfig(op)
        .set_dtype_configs(act_quant_dtype_configs)
        .set_observation_type(_ObservationType.OUTPUT_USE_DIFFERENT_OBSERVER_AS_INPUT)
        for op in ops
    ]

    Returns backend pattern configs for the following sequence of ops:

    input_1 -->
                  operator --> output
    input_2 -->

    where operator is a binary operator such as add, multiply or matmul.
    
coremltools/optimize/torch/quantization/_backend_config_utils.py