def is_quantized(module: _aoquant.FakeQuantizeBase):
    """
    Returns true if activation post process module uses integer dtypes.
    """
    if hasattr(module, "activation_post_process"):
        return module.activation_post_process.dtype in [_torch.qint8, _torch.quint8]
    return False

    Returns true if activation post process module uses integer dtypes.
    
coremltools/optimize/torch/quantization/_utils.py