o
    Ô0 i:  ã                   @   s   d d„ Z dS )c                 C   sl   | j j }}| j}| j}| j}t||ƒD ]\}}|dk r%||d | 7 }q||d | 7 }q||7 }||fS )zËReturns pointers to the end-points of an array.

    Args:
        a: ndarray
    Returns:
        Tuple[int, int]: pointers to the end-points of an array

    .. seealso:: :func:`numpy.byte_bounds`
    é    é   )ÚdataZptrÚstridesÚshapeÚitemsizeÚzip)ÚaZa_lowZa_highZ	a_stridesZa_shapeZa_item_bytesr   Zstride© r	   úb/home/app/PaddleOCR-VL-test/.venv_paddleocr/lib/python3.10/site-packages/cupy/_misc/byte_bounds.pyÚbyte_bounds   s   
r   N)r   r	   r	   r	   r
   Ú<module>   s    