def function_filter(
    cfg,
    func_attrs,
    x_shape,
):
    """Generates function filter.

    Parameters
    ----------
    cfg: str
        The filename generated for profiler.
    func_attrs : Dict
        Stores the operation attributes.
    x_shape:
        Input shapes.

    Returns
    -------
    bool
        If input cfg should be filtered.
    """
    dtype = func_attrs["inputs"][0]._attrs["dtype"]
    ab_alignment = _cal_align_ab(x_shape, dtype=dtype)

    tmp = cfg.split("_")
    align_c = int(tmp[-1])
    align_ab = int(tmp[-2])

    if align_c != func_attrs["epilogue_alignment"]:
        return False
    if align_ab != ab_alignment:
        return False

    return True
Generates function filter.

Parameters
----------
cfg: str
The filename generated for profiler.
func_attrs : Dict
Stores the operation attributes.
x_shape:
Input shapes.

Returns
-------
bool
If input cfg should be filtered.
python/aitemplate/backend/cuda/conv2d/common.py