def gen_function_decl(func_name, conv2d_flag):
    """Generates function declarations.

    Parameters
    ----------
    func_attrs : Dict
        Operation attributes.
    conv2d_flag : str
        Flag telling which backend should be generated. options are '','bias','bias_relu','bias_add_relu','bias_add_identity'.

    Returns
    -------
    str
        The rentered template of function declaration.
    """
    return FUNC_DECL_TEMPLATE.render(func_name=func_name, conv2d_flag=conv2d_flag)
Generates function declarations.

Parameters
----------
func_attrs : Dict
Operation attributes.
conv2d_flag : str
Flag telling which backend should be generated. options are '','bias','bias_relu','bias_add_relu','bias_add_identity'.

Returns
-------
str
The rentered template of function declaration.
python/aitemplate/backend/rocm/conv2d/common.py