def get_stride_expressions(shape: List[IntVar]) -> List[str]:
    """
    Generate the stride expressions for each of the dimensions
    of the shape. A stride expression here means the
    product of all dimensions following the given dimension.
    The order of the stride expressions in the returned list
    is the same as of the dimensions of the shape.
    """
    strides = []
    for dim in reversed(shape[1:]):
        str_dim = str(dim.value()) if isinstance(dim, IntImm) else dim._attrs["name"]
        if strides:
            strides.append(f"{strides[-1]} * {str_dim}")
        else:
            strides.append(str_dim)
    strides.reverse()
    return strides

    Generate the stride expressions for each of the dimensions
    of the shape. A stride expression here means the
    product of all dimensions following the given dimension.
    The order of the stride expressions in the returned list
    is the same as of the dimensions of the shape.
    
python/aitemplate/backend/common/elementwise_common.py