def reduce_sum_gen_function(func_attrs):
    """the registered function for generating reduce_sum kernel and all of
    its auxiliary functions

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        holds attributes of this reduce_sum op

    Returns
    -------
    str
        returns the rendered code for the complete implementation of this reduce sum op
    """
    if _is_last_reduction_dim(func_attrs):
        return reduce_3d.gen_function(func_attrs, "cutlass::plus")
    else:
        return reduce_common.gen_function(func_attrs, "cutlass::plus")
the registered function for generating reduce_sum kernel and all of
its auxiliary functions

Parameters
----------
func_attrs : Dict[str, Any]
holds attributes of this reduce_sum op

Returns
-------
str
returns the rendered code for the complete implementation of this reduce sum op
python/aitemplate/backend/cuda/reduce/reduce_sum.py