def make_fproc(
    func_attrs,
    layout,
    dtype="float16",
):
    """
    This function sets a callback for processing the epilogue of the kernel
    associated with func_attrs.
    """

    def fproc(op):
        a_layout, b_layout, c_layout = layout.cutlass_lib_layouts()
        return default_fproc(
            op=op,
            a_layout=a_layout,
            b_layout=b_layout,
            c_layout=c_layout,
            epilogue_name=func_attrs["epilogue"],
            epilogue2_name=func_attrs["epilogue2"],
            dtype=dtype,
        )

    func_attrs["op_instance"] = extract_config(fproc, func_attrs)
This function sets a callback for processing the epilogue of the kernel
associated with func_attrs.
python/aitemplate/backend/cuda/gemm_epilogue_vistor/common_dual_gemm.py