def find_max_alignment_for_accessors(
    dtype: str, accessors: List[TensorAccessor]
) -> int:
    """the max alignment value that meets the requirement specified by
       the accessors and dtype

    Parameters
    ----------
    dtype: str
        dtype of the tensor for which the accessors are attached
    accessors: List[TensorAccessor]
        TensorAccessor(s) attached to the relevant tensor being accessed

    Returns
    ----------
    int
        the max alignment value
    """
    align = max(alignment.get_alignments(dtype))
    # Handle accessors
    for accessor in accessors:
        align = min(align, find_max_alignment_for_accessor(accessor))
    return align
the max alignment value that meets the requirement specified by
the accessors and dtype

Parameters
----------
dtype: str
dtype of the tensor for which the accessors are attached
accessors: List[TensorAccessor]
TensorAccessor(s) attached to the relevant tensor being accessed

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