def apply_mask_to_tensors(mask, tensors):
    """Applies mask to a list of tensors.

    Args:
        mask: [R, ...]. Mask to apply.
        tensors: List of [R, ...]. List of tensors.

    Returns:
        intersect_tensors: List of shape [R?, ...]. Masked tensors.
    """
    intersect_tensors = []
    for t in tensors:
        intersect_t = t[mask]  # [R?, ...]
        intersect_tensors.append(intersect_t)
    return intersect_tensors