def find_max_alignment_for_accessor(accessor: TensorAccessor) -> int:
    """the max alignment value that meets the requirement specified by
       the accessor

    Parameters
    ----------
    accessors: TensorAccessor

    Returns
    ----------
    int
        the max alignment value
    """
    align = alignment.find_max_alignment(accessor.offset, accessor.tensor_dtype)
    if not accessor.is_contiguous:
        align = min(
            align,
            alignment.find_max_alignment(
                accessor.original_total_elements_from_stride_dim, accessor.tensor_dtype
            ),
        )
        align = min(
            align,
            alignment.find_max_alignment(
                accessor.actual_total_elements_from_stride_dim, accessor.tensor_dtype
            ),
        )
    return align
the max alignment value that meets the requirement specified by
the accessor

Parameters
----------
accessors: TensorAccessor

Returns
----------
int
the max alignment value
python/aitemplate/backend/common/tensor_accessor_codegen.py