def share_observer_configs(ops: _List[_Any]) -> _List[_BackendPatternConfig]:
    """
    Returns backend pattern configs for ops which do not change the scale or
    zero-point of the input tensor and thus can share the same qparams.
    """
    return [
        _BackendPatternConfig(op)
        .set_observation_type(_ObservationType.OUTPUT_SHARE_OBSERVER_WITH_INPUT)
        .set_dtype_configs(act_quant_dtype_configs)
        for op in ops
    ]

    Returns backend pattern configs for ops which do not change the scale or
    zero-point of the input tensor and thus can share the same qparams.
    
coremltools/optimize/torch/quantization/_backend_config_utils.py