def gen_function(func_attrs):
    """Generates function body.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.
    element_func_def: str
        Functions that defines how tanh work.

    Returns
    -------
    str
        Rendered function body.
    """
    return concatenate.gen_function(
        func_attrs, element_func="fast_tanh", element_func_def=TANH_DEF.render()
    )
Generates function body.

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.
    element_func_def: str
        Functions that defines how tanh work.

    Returns
    -------
    str
        Rendered function body.
    
python/aitemplate/backend/rocm/tensor/concatenate_tanh.py