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

    Parameters
    ----------
    func_attrs : Dict[str, Any]
        Stores the operation attributes.

    Returns
    -------
    str
        Rendered function body.
    """
    return slice_common.gen_function(
        func_attrs, backend_spec=CUDASpec(), elems_per_thread=8
    )
Generates function body.

Parameters
----------
func_attrs : Dict[str, Any]
Stores the operation attributes.

Returns
-------
str
Rendered function body.
python/aitemplate/backend/cuda/tensor/dynamic_slice.py