def _op_is_int8_dynamically_quantized(qconfig) -> bool:
    r"""
    Given a qconfig, returns True if this op is using int8 dynamic
    quantization
    """
    activation_dtype, weight_dtype, activation_compute_dtype = _get_qconfig_dtypes(
        qconfig
    )
    return (
        activation_dtype is torch.float
        and
        # for now, the lines below assume fbgemm or qnnpack
        weight_dtype is torch.qint8
        and activation_compute_dtype is torch.quint8
    )

    Given a qconfig, returns True if this op is using int8 dynamic
    quantization
    
intel_extension_for_pytorch/quantization/_module_swap_utils.py