§
    ù¸¸j�u  ã                  ó‚  — d dl mZ d dlZd dlmZmZ d dlZd dlmZ	 d dl
Z
d dlmZ d dlmZmZmZmZmZmZ d dlmZmZ erd dlmZ dVd„Z e
j        de¬¦  «        	 dWdXd„¦   «         ZdYd„Z ej        eddg¬¦  «        Z  e
j        de¬¦  «        	 	 	 dZd[d„¦   «         Z!dYd„Z" ej        e"ddg¬¦  «        Z# e
j        de¬¦  «        	 	 	 d\d[d „¦   «         Z$ e
j        d!e¬¦  «        d]d%„¦   «         Z%d^d)„Z&d_d*„Z'd`d+„Z(dad-„Z)dbd.„Z*dcddd4„Z+dWded8„Z,dWdfd9„Z-dgd=„Z.	 dhdidA„Z/djdE„Z0dWdkdG„Z1dldK„Z2	 dhdmdM„Z3dndO„Z4	 dodpdU„Z5dS )qé    )ÚannotationsN)ÚTYPE_CHECKINGÚAny)ÚMapProtoÚOptionalProtoÚSequenceProtoÚTensorProtoÚhelperÚsubbyte)Úload_external_data_for_tensorÚuses_external_data)ÚSequenceÚfaúSequence[int]Úreturnúlist[complex]c                óZ   ‡ — ˆ fd„t          t          ‰ ¦  «        dz  ¦  «        D ¦   «         S )Nc                óZ   •— g | ]'}t          ‰|d z           ‰|d z  dz            ¦  «        ‘Œ(S )é   é   )Úcomplex)Ú.0Úir   s     €úa/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/onnx/numpy_helper.pyú
<listcomp>z-_combine_pairs_to_complex.<locals>.<listcomp>   s7   ø€ ÐKÐKÐK°!�G�B�q˜1‘u”I˜r ! a¡%¨!¡)œ}Ñ-Ô-ÐKÐKÐKó    r   )ÚrangeÚlen)r   s   `r   Ú_combine_pairs_to_complexr      s/   ø€ ØKÐKÐKÐKµu½SÀ¹W¼WÈ¹\Ñ7JÔ7JÐKÑKÔKÐKr   zpDeprecated since 1.18. Scheduled to remove in 1.20. Consider using libraries like ml_dtypes for dtype conversion)ÚcategoryÚdataú np.int16 | np.int32 | np.ndarrayÚdimsúint | Sequence[int] | Noneú
np.ndarrayc                ó2  — d„ }|€»t          | j        ¦  «        dk    r^ |t          j        | g¦  «                             t          j        ¦  «        ¦  «                             t          j        ¦  «        d         S  ||                      t          j        ¦  «        ¦  «                             t          j        ¦  «        S  ||                      t          j        ¦  «        ¦  «                             |¦  «                             t          j        ¦  «        S )a_  Converts ndarray of bf16 (as uint32) to f32 (as uint32).

    Args:
        data: A numpy array, empty dimensions are allowed if dims is
            None.
        dims: If specified, the function reshapes the results.

    Returns:
        A numpy array of float32 with the same dimension if dims is
        None, or reshaped to dims if specified
    c                ó   — | dz  S )Né   © ©Úxs    r   ú<lambda>z%bfloat16_to_float32.<locals>.<lambda>,   s
   € �a˜2‘g€ r   Nr   )	r   ÚshapeÚnpÚarrayÚastypeÚint32ÚviewÚfloat32Úreshape)r!   r#   Úshifts      r   Úbfloat16_to_float32r6      sÏ   € ð& Ð€EØ€|ÝˆtŒz‰?Œ?˜aÒÐØ�5�œ 4 &Ñ)Ô)×0Ò0µ´Ñ:Ô:Ñ;Ô;×@Ò@ÅÄÑLÔLÈQÔOÐOØˆu�T—[’[¥¤Ñ*Ô*Ñ+Ô+×0Ò0µ´Ñ<Ô<Ð<Øˆ5�—’�RœXÑ&Ô&Ñ'Ô'×/Ò/°Ñ5Ô5×:Ò:½2¼:ÑFÔFÐFr   ÚivalÚintÚfnÚboolÚuzú
np.float32c                óº  — |st          d¦  «        ‚| dk     s| dk    rt          | › d�¦  «        ‚|rd}| dk    rt          j        S nKd}| dk    rt          j        t          j         ¦  «        S | dk    rt          j        t          j        ¦  «        S t          j        | ¦  «        } | d	z  d
z	  }| dz  }| dz  }|dz  }|dk    rO|dk    rHd|z
  }|dz  dk    r|d
z  }|dz  }|dz  }|dz  dk    r|d
z  }|dz  }|dz  }||d
z  dz  z  }||dz  z  }n||dz  z  }|d|z
  z  }||dz  z  }t          j        |¦  «                             t          j        ¦  «        }|S )Nzfn=False is not implemented.r   éÿ   z is not a float8.é   é€   é   é   éx   é   é   é   r   é   é   é   )ÚNotImplementedErrorÚ
ValueErrorr.   Únanr3   Úuint32r2   ©	r7   r9   r;   Úexponent_biasÚexpoÚmantÚsignÚresÚfs	            r   Ú_float8e4m3_to_float32_scalarrU   4   s´  € Øð BÝ!Ð"@ÑAÔAÐAØˆa‚x€x�4˜#’:�:Ý˜DÐ3Ð3Ð3Ñ4Ô4Ð4Ø	ð 	&ØˆØ�4Š<ˆ<Ý”6ˆMð ð ˆØ�3Š;ˆ;Ý”:�rœv˜gÑ&Ô&Ð&Ø�3Š;ˆ;Ý”:�bœfÑ%Ô%Ð%åŒ9�T‰?Œ?€DØ�4‰K˜AÑ€DØ�$‰;€DØ�$‰;€DØ
�"‰*€CØˆq‚y€yØ�!Š8ˆ8Ø˜-Ñ'ˆDØ�c‰z˜QŠˆØ˜‘�Ø˜‘
�Ø˜‘	�Ø�c‰z˜QŠˆØ˜‘�Ø˜‘
�Ø˜‘	�Ø�D˜3‘J 2Ñ%Ñ%ˆCØ�4˜2‘:ÑˆCøàˆt�r‰zÑˆØ��}Ñ$Ñ$ˆØˆt�r‰zÑˆÝ
Œ	�#‰Œ×Ò�BœJÑ'Ô'€AØ€Hr   )ÚexcludedTFc                óz   — |st          d¦  «        ‚t          | ||¬¦  «        }|€|S |                     |¦  «        S )aÔ  Converts ndarray of float8, e4m3 (as uint32) to f32 (as uint32).

    See :ref:`onnx-detail-float8` for technical details.

    Args:
        data: A numpy array, empty dimensions are allowed if dims is None.
        dims: If specified, the function reshapes the results.
        fn: No infinite values.
        uz: No negative zero.

    Returns:
        A numpy array of float32 with the same dimension if dims is None,
        or reshaped to dims if specified.
    z4float32_to_float8e4m3 not implemented with fn=False.©r9   r;   )rJ   Ú_float8e4m3_to_float32r4   ©r!   r#   r9   r;   rS   s        r   Úfloat8e4m3_to_float32r[   c   sS   € ð0 ð 
Ý!ØBñ
ô 
ð 	
õ ! ¨"°Ð
4Ñ
4Ô
4€CØ€|Øˆ
Ø�;Š;�tÑÔÐr   c                ó  — |r)|r'| dk    rt          j        t           j        ¦  «        S d}n¤|s“|s‘| dv rt          j        t           j         ¦  «        S | dv rt          j        t           j        ¦  «        S | dk    rt          j        t           j         ¦  «        S | dk    rt          j        t           j        ¦  «        S d}nt	          d¦  «        ‚t          j        | ¦  «        } | dz  d	z	  }| d
z  }| dz  }|dz  }|dk    r7|dk    r0d|z
  }|d	z  dk    r|dz  }|dz  }|dz  }||dz  dz  z  }||dz  z  }n||dz  z  }|d|z
  z  }||dz  z  }t          j        |¦  «                             t           j        ¦  «        }|S )Nr@   r(   >   éý   éþ   r>   >   é}   é~   rB   éü   é|   é   z%fn and uz must be both False or True.r   rD   rE   r   rB   r   é   rH   rG   )r.   r3   rL   ÚinfrJ   rM   r2   rN   s	            r   Ú_float8e5m2_to_float32_scalarrf   …   s¹  € Ø	ð Kˆbð KØ�4Š<ˆ<Ý”:�bœfÑ%Ô%Ð%ØˆˆØð K˜ð KØ�?Ð"Ð"Ý”:�rœv˜gÑ&Ô&Ð&Ø�?Ð"Ð"Ý”:�bœfÑ%Ô%Ð%Ø�3Š;ˆ;Ý”:�rœv˜gÑ&Ô&Ð&Ø�3Š;ˆ;Ý”:�bœfÑ%Ô%Ð%Øˆˆå!Ð"IÑJÔJÐJåŒ9�T‰?Œ?€DØ�4‰K˜AÑ€DØ�$‰;€DØ�$‰;€DØ
�"‰*€CØˆq‚y€yØ�!Š8ˆ8Ø˜-Ñ'ˆDØ�c‰z˜QŠˆØ˜‘�Ø˜‘
�Ø˜‘	�Ø�D˜3‘J 2Ñ%Ñ%ˆCØ�4˜2‘:ÑˆCøàˆt�r‰zÑˆØ��}Ñ$Ñ$ˆØˆt�r‰zÑˆÝ
Œ	�#‰Œ×Ò�BœJÑ'Ô'€AØ€Hr   c                óX   — t          | ||¬¦  «        }|€|S |                     |¦  «        S )aÓ  Converts ndarray of float8, e5m2 (as uint32) to f32 (as uint32).

    See :ref:`onnx-detail-float8` for technical details.

    Args:
        data: A numpy array, empty dimensions are allowed if dims is None.
        dims: If specified, the function reshapes the results.
        fn: No infinite values.
        uz: No negative zero.

    Returns:
        A numpy array of float32 with the same dimension if dims is None,
        or reshaped to dims if specified
    rX   )Ú_float8e5m2_to_float32r4   rZ   s        r   Úfloat8e5m2_to_float32ri   ²   s4   € õ0 ! ¨"°Ð
4Ñ
4Ô
4€CØ€|Øˆ
Ø�;Š;�tÑÔÐr   z_Deprecated since 1.18. Scheduled to remove in 1.20. Consider implementing your own unpack logicúnp.int32 | np.ndarrayúint | Sequence[int]Úsignedc                óœ  ‡— ˆfd„}t          j        |dd¦  «        } ||                      ¦   «         ¦  «        \  }}t          j        |j        |j        z   ft           j        ¬¦  «        }||ddd…<   ||ddd…<   |j        t          j        |¦  «        dz   k    r|                     ¦   «         dd…         }|                     |¦  «        }|S )a•  Converts ndarray of int4 (as packed uint8) to f32
    See :ref:`onnx-detail-int4` for technical details.

    Args:
        data: A numpy array, empty dimensions are allowed if dims is
            None.
        dims: The dimensions are used to reshape the unpacked buffer
        signed: Whether the 4 bit integer is signed or unsigned

    Returns:
        A numpy array of float32 reshaped to dims.
    c                ó.   •— t          j        | ‰¦  «        S ©N)r   Ú_unpack_single_4bitx2)r+   rl   s    €r   r,   zunpack_int4.<locals>.<lambda>å   s   ø€ �GÔ9¸!¸VÑDÔD€ r   r   r   ©Údtyper   Néÿÿÿÿ)r.   Ú
frompyfuncÚravelÚemptyÚsizer3   Úprodr4   )r!   r#   rl   Úsingle_funcÚfuncÚres_highÚres_lowrS   s     `     r   Úunpack_int4r}   Ð   sË   ø€ ð* EÐDÐDÐD€KÝŒ=˜ a¨Ñ+Ô+€Dà˜˜TŸZšZ™\œ\Ñ*Ô*Ñ€HˆgÝ
Œ(�H”M G¤LÑ0Ð2½"¼*Ð
EÑ
EÔ
E€CØ€Cˆˆˆ1ˆ�IØ€Cˆˆˆ1ˆ�Ið 	Œ•B”G˜D‘M”M AÑ%Ò%Ð%à�iŠi‰kŒk˜#˜2˜#ÔˆØ
�+Š+�dÑ
Ô
€CØ€Jr   r+   únpt.NDArray[np.uint8]únpt.NDArray[np.float32]c                óJ  — t          j        t          j        | d¦  «        dd¦  «        }| dz                       t           j        ¦  «        }| dz  dz	                       t           j        ¦  «        }t          j        |dk    ||dz  z  |d|dz  z   z  d|dz
  z  z  ¦  «        }|S )aN  Evaluate the numerical value of an array of unpacked float4e2m1 values (as uint8)
    See :ref:`onnx-detail-int4` for technical details.

    Args:
        x: an array of uint8 elements representing a float4e2m1 (using the 4 LSB)

    Returns:
        An array of float32 elements representing the values of the float4e2m1 input.
    r?   rs   r   é   r   g       @g      ð?)r.   ÚwhereÚbitwise_andr0   r3   )r+   rR   ÚmantissaÚexponentÚvals        r   Úunpacked_float4e2m1_to_float32r‡   õ   s£   € õ Œ8•B”N 1 dÑ+Ô+¨R°Ñ3Ô3€DØ�D‘× Ò ¥¤Ñ,Ô,€HØ�T‘˜a‘×'Ò'­¬
Ñ3Ô3€Hå
Œ(Ø�AŠØ�˜3‘ÑØ��h ‘nÑ$Ñ%¨°¸1±Ñ(=Ñ=ñô €Cð
 €Jr   c                ó@   — t          | |¦  «        }t          |¦  «        S )a]  Converts ndarray of float4e2m1 (as packed uint8) to f32
    See :ref:`onnx-detail-float4` for technical details.

    Args:
        data: A numpy array, empty dimensions are allowed if dims is
            None.
        dims: The dimensions are used to reshape the unpacked buffer

    Returns:
        A numpy array of float32 reshaped to dims.
    )Ú_unpack_uint4r‡   )r!   r#   rS   s      r   Úunpack_float4e2m1rŠ     s!   € õ ˜˜dÑ
#Ô
#€CÝ)¨#Ñ.Ô.Ð.r   c                óz  — t          j        | j        dz  g| j        ¬¦  «        }| t          j        d¦  «        z  }| t          j        d¦  «        z  }|t          j        d¦  «        z  }||ddd…<   ||ddd…<   |j        t          j        |¦  «        dz   k    r
|dd	…         }|                     |d
¬¦  «         |S )a  Convert a packed uint4 array to unpacked uint4 array represented as uint8.

    Args:
        data: A numpy array.
        dims: The dimensions are used to reshape the unpacked buffer.

    Returns:
        A numpy array of int8/uint8 reshaped to dims.
    r   rq   rc   éð   rF   r   Nr   rs   F)Úrefcheck)r.   rv   rw   rr   Úuint8rx   Úresize)r!   r#   ÚresultÚ	array_lowÚ
array_highs        r   r‰   r‰     s¸   € õ ŒX�t”y 1‘}�o¨T¬ZÐ8Ñ8Ô8€FØ•r”x ‘~”~Ñ%€IØ�œ ™œÑ&€JØ•2”8˜A‘;”;Ñ€JØ€Fˆ1ˆ4ˆaˆ4�LØ€Fˆ1ˆ4ˆaˆ4�LØ„{•b”g˜d‘m”m aÑ'Ò'Ð'à˜˜˜”ˆØ
‡M‚M�$ €MÑ'Ô'Ð'Ø€Mr   únpt.NDArray[np.int8]c                ó|   — t          j        | dz	  dk    | | dz  ¦  «                             t           j        ¦  «        S )z4Extend 4-bit signed integer to 8-bit signed integer.rD   r   rŒ   )r.   r‚   r0   Úint8r*   s    r   Ú_extend_int4_sign_bitsr–   8  s2   € åŒ8�Q˜!‘V ’M 1 a¨$¡hÑ/Ô/×6Ò6µr´wÑ?Ô?Ð?r   c                ó@   — t          | |¦  «        }t          |¦  «        S )aH  Convert a packed (signed) int4 array to unpacked int4 array represented as int8.

    The sign bit is extended to the most significant bit of the int8.

    Args:
        data: A numpy array.
        dims: The dimensions are used to reshape the unpacked buffer.

    Returns:
        A numpy array of int8 reshaped to dims.
    )r‰   r–   )r!   r#   Úunpackeds      r   Ú_unpack_int4r™   =  s!   € õ ˜T 4Ñ(Ô(€HÝ! (Ñ+Ô+Ð+r   Ú Útensorr	   Úbase_dirÚstrc                óV  — |                       d¦  «        rt          d¦  «        ‚| j        t          j        k    rt          d¦  «        ‚| j        }t          j        |¦  «        }t          j        t          j        |¦  «        ¦  «        }t          j	        |¦  «        }| j
        }| j        t          j        k    rVt          | |¦  «        }d„ |D ¦   «         }t          j        |¦  «                             |¦  «                             |¦  «        S t#          | ¦  «        rt%          | |¦  «         |                       d¦  «        �r{| j        }	t(          j        dk    r:t          j        |	|¬¦  «                             ¦   «                              ¦   «         }	|t          j        k    rRt          j        |	t          j        ¬¦  «                             |¦  «        }
|
                     t8          j        ¦  «        S |t          j        k    rRt          j        |	t          j        ¬¦  «                             |¦  «        }
|
                     t8          j         ¦  «        S |t          j!        k    rRt          j        |	t          j        ¬¦  «                             |¦  «        }
|
                     t8          j"        ¦  «        S |t          j#        k    rRt          j        |	t          j        ¬¦  «                             |¦  «        }
|
                     t8          j$        ¦  «        S |t          j%        k    rRt          j        |	t          j        ¬¦  «                             |¦  «        }
|
                     t8          j&        ¦  «        S |t          j'        k    rMt          j        |	t          j(        ¬¦  «        }
tS          |
|¦  «                             t8          j*        ¦  «        S |t          j+        k    rMt          j        |	t          j(        ¬¦  «        }
tY          |
|¦  «                             t8          j-        ¦  «        S |t          j.        k    rMt          j        |	t          j(        ¬¦  «        }
tS          |
|¦  «                             t8          j/        ¦  «        S t          j        |	|¬¦  «                             |¦  «        S |t          j0        k    rUt          j        | j1        t          j2        ¬¦  «                             |¦  «                             t          j3        ¦  «        S |t          j        k    rtt          j        | j1        t          j4        ¬¦  «                             t          j2        ¦  «                             |¦  «        }
|
                     t8          j        ¦  «        S |t          j        k    rtt          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «                             |¦  «        }
|
                     t8          j         ¦  «        S |t          j!        k    rtt          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «                             |¦  «        }
|
                     t8          j"        ¦  «        S |t          j#        k    rtt          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «                             |¦  «        }
|
                     t8          j$        ¦  «        S |t          j%        k    rtt          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «                             |¦  «        }
|
                     t8          j&        ¦  «        S |t          j'        k    rot          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «        }
tS          |
|¦  «                             t8          j*        ¦  «        S |t          j+        k    rot          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «        }
tY          |
|¦  «                             t8          j-        ¦  «        S |t          j.        k    rot          j        | j1        t          j4        ¬¦  «                             t          j(        ¦  «        }
tS          |
|¦  «                             t8          j/        ¦  «        S t          | |¦  «        }
|t          j5        t          j6        fv rto          |
¦  «        }
t          j        |
|¬¦  «                             |¦  «                             |¦  «        S )a+  Converts a tensor def object to a numpy array.
    Supports types defined in :mod:`onnx._custom_element_types`.

    Args:
        tensor: a TensorProto object.
        base_dir: if external tensor exists, base_dir can help to find the path to it

    Returns:
        arr: the converted array.
    Úsegmentz*Currently not supporting loading segments.z4The element type in the input tensor is not defined.c                ó8   — g | ]}|                      d ¦  «        ‘ŒS )úutf-8)Údecode)r   Úss     r   r   zto_array.<locals>.<listcomp>i  s$   € Ð6Ð6Ð6 Aˆa�hŠh�wÑÔÐ6Ð6Ð6r   Úraw_dataÚbigrq   )8ÚHasFieldrK   Ú	data_typer	   Ú	UNDEFINEDÚ	TypeErrorr
   Útensor_dtype_to_np_dtypeÚ$tensor_dtype_to_storage_tensor_dtypeÚtensor_dtype_to_fieldr#   ÚSTRINGÚgetattrr.   Úasarrayr0   r4   r   r   r¤   ÚsysÚ	byteorderÚ
frombufferÚbyteswapÚtobytesÚBFLOAT16Úint16r2   Úcustom_np_typesÚbfloat16ÚFLOAT8E4M3FNr•   Úfloat8e4m3fnÚFLOAT8E4M3FNUZÚfloat8e4m3fnuzÚ
FLOAT8E5M2Ú
float8e5m2ÚFLOAT8E5M2FNUZÚfloat8e5m2fnuzÚUINT4rŽ   r‰   Úuint4ÚINT4r™   Úint4Ú
FLOAT4E2M1Ú
float4e2m1ÚFLOAT16Ú
int32_dataÚuint16Úfloat16r1   Ú	COMPLEX64Ú
COMPLEX128r   )r›   rœ   Útensor_dtypeÚnp_dtypeÚstorage_np_dtypeÚstorage_fieldr#   Úutf8_stringsÚssr¤   r!   s              r   Úto_arrayrÓ   O  s_  € ð ‡‚�yÑ!Ô!ð GÝÐEÑFÔFÐFØÔ�;Ô0Ò0Ð0ÝÐNÑOÔOÐOàÔ#€LÝÔ.¨|Ñ<Ô<€HÝÔ6ÝÔ3°LÑAÔAñô Ðõ Ô0°Ñ>Ô>€MØŒ;€DàÔ�;Ô-Ò-Ð-Ý˜v }Ñ5Ô5ˆØ6Ð6¨Ð6Ñ6Ô6ˆÝŒz˜"‰~Œ~×$Ò$ XÑ.Ô.×6Ò6°tÑ<Ô<Ð<õ ˜&Ñ!Ô!ð 8Ý% f¨hÑ7Ô7Ð7à‡‚�zÑ"Ô"ñ +Eà”?ˆÝŒ=˜EÒ!Ð!å”} X°XÐ>Ñ>Ô>×GÒGÑIÔI×QÒQÑSÔSˆHð �;Ô/Ò/Ð/Ý”= µ´Ð:Ñ:Ô:×BÒBÀ4ÑHÔHˆDØ—9’9�_Ô5Ñ6Ô6Ð6à�;Ô3Ò3Ð3Ý”= µ´Ð9Ñ9Ô9×AÒAÀ$ÑGÔGˆDØ—9’9�_Ô9Ñ:Ô:Ð:à�;Ô5Ò5Ð5Ý”= µ´Ð9Ñ9Ô9×AÒAÀ$ÑGÔGˆDØ—9’9�_Ô;Ñ<Ô<Ð<à�;Ô1Ò1Ð1Ý”= µ´Ð9Ñ9Ô9×AÒAÀ$ÑGÔGˆDØ—9’9�_Ô7Ñ8Ô8Ð8à�;Ô5Ò5Ð5Ý”= µ´Ð9Ñ9Ô9×AÒAÀ$ÑGÔGˆDØ—9’9�_Ô;Ñ<Ô<Ð<à�;Ô,Ò,Ð,Ý”= µ´Ð:Ñ:Ô:ˆDÝ ØØñô ÷ Šd•?Ô(Ñ)Ô)ð*ð
 �;Ô+Ò+Ð+Ý”= µ´Ð:Ñ:Ô:ˆDÝ  dÑ+Ô+×0Ò0µÔ1EÑFÔFÐFà�;Ô1Ò1Ð1Ý”= µ´Ð:Ñ:Ô:ˆDÝ   tÑ,Ô,×1Ò1µ/Ô2LÑMÔMÐMåŒ}˜X¨XÐ6Ñ6Ô6×>Ò>¸tÑDÔDÐDð •{Ô*Ò*Ð*åŒJ�vÔ(µ´	Ð:Ñ:Ô:ßŠW�T‰]Œ]ßŠT•"”*ÑÔð	
ð •{Ô+Ò+Ð+åŒJ�vÔ(µ´Ð9Ñ9Ô9ßŠV•B”IÑÔßŠW�T‰]Œ]ð 	ð
 �yŠy�Ô1Ñ2Ô2Ð2à•{Ô/Ò/Ð/åŒJ�vÔ(µ´Ð9Ñ9Ô9×@Ò@ÅÄÑJÔJ×RÒRÐSWÑXÔXð 	ð �yŠy�Ô5Ñ6Ô6Ð6à•{Ô1Ò1Ð1åŒJ�vÔ(µ´Ð9Ñ9Ô9×@Ò@ÅÄÑJÔJ×RÒRÐSWÑXÔXð 	ð �yŠy�Ô7Ñ8Ô8Ð8à•{Ô-Ò-Ð-åŒJ�vÔ(µ´Ð9Ñ9Ô9×@Ò@ÅÄÑJÔJ×RÒRÐSWÑXÔXð 	ð �yŠy�Ô3Ñ4Ô4Ð4à•{Ô1Ò1Ð1åŒJ�vÔ(µ´Ð9Ñ9Ô9×@Ò@ÅÄÑJÔJ×RÒRÐSWÑXÔXð 	ð �yŠy�Ô7Ñ8Ô8Ð8à•{Ô(Ò(Ð(ÝŒz˜&Ô+µ2´8Ð<Ñ<Ô<×CÒCÅBÄHÑMÔMˆÝ˜T 4Ñ(Ô(×-Ò-­oÔ.CÑDÔDÐDà•{Ô'Ò'Ð'ÝŒz˜&Ô+µ2´8Ð<Ñ<Ô<×CÒCÅBÄHÑMÔMˆÝ˜D $Ñ'Ô'×,Ò,­_Ô-AÑBÔBÐBà•{Ô-Ò-Ð-ÝŒz˜&Ô+µ2´8Ð<Ñ<Ô<×CÒCÅBÄHÑMÔMˆÝ˜T 4Ñ(Ô(×-Ò-­oÔ.HÑIÔIÐIå�6˜=Ñ)Ô)€DØ�Ô-­{Ô/EÐFÐFÐFÝ(¨Ñ.Ô.ˆåŒ:�dÐ"2Ð3Ñ3Ô3×:Ò:¸8ÑDÔD×LÒLÈTÑRÔRÐRr   ÚarrÚnameú
str | Nonec           	     ó@  — t          | t          j        t          j        f¦  «        st	          dt          | ¦  «        › �¦  «        ‚t          ¦   «         }|j                             | j	        ¦  «         |r||_
        | j        t          k    s%t          j        | j        t          j        ¦  «        �rit          j        | j        ¦  «        |_        |                      ¦   «         }|D �]1}t          |t&          ¦  «        r.|j                             |                     d¦  «        ¦  «         ŒFt          |t          j        ¦  «        rx|D ]t}t          |t&          ¦  «        r.|j                             |                     d¦  «        ¦  «         ŒEt          |t.          ¦  «        r|j                             |¦  «         ŒuŒØt          |t.          ¦  «        r|j                             |¦  «         �Œ	t1          dt'          t          |¦  «        ¦  «        ¦  «        ‚|S 	 t          j        | j        ¦  «        }n*# t2          $ r}t5          d| j        ›�¦  «        |‚d}~ww xY w||_        |                      ¦   «         |_        t:          j        dk    rt?          |¦  «         |S )zÁConverts a numpy array to a tensor def.

    Args:
        arr: a numpy array.
        name: (optional) the name of the tensor.

    Returns:
        TensorProto: the converted tensor def.
    z2arr must be of type np.generic or np.ndarray, got r¡   zMUnrecognized object in the object array, expect a string, or array of bytes: z$Numpy data type not understood yet: Nr¥   ) Ú
isinstancer.   ÚndarrayÚgenericr©   Útyper	   r#   Úextendr-   rÕ   rr   ÚobjectÚ
issubdtypeÚstr_r
   Únp_dtype_to_tensor_dtyper§   Úflattenr�   Ústring_dataÚappendÚencodeÚbytesrJ   ÚKeyErrorÚRuntimeErrorr´   r¤   r°   r±   Ú_convert_endian)rÔ   rÕ   r›   Ú
flat_arrayÚer£   rr   s          r   Ú_from_arrayrë   Ø  st  € õ �c�BœJ­¬
Ð3Ñ4Ô4ð 
ÝØLÅÀcÁÄÐLÐLñ
ô 
ð 	
õ ‰]Œ]€FØ
„K×Ò�s”yÑ!Ô!Ð!Øð ØˆŒà
„y•FÒÐ�bœm¨C¬Iµr´wÑ?Ô?Ñå!Ô:¸3¼9ÑEÔEˆÔð —[’[‘]”]ˆ
Øð 	ñ 	ˆAÝ˜!�SÑ!Ô!ð ØÔ"×)Ò)¨!¯(ª(°7Ñ*;Ô*;Ñ<Ô<Ð<Ð<Ý˜A�rœzÑ*Ô*ð Øð 5ð 5�AÝ! !¥SÑ)Ô)ð 5ØÔ*×1Ò1°!·(²(¸7Ñ2CÔ2CÑDÔDÐDÐDÝ# A¥uÑ-Ô-ð 5ØÔ*×1Ò1°!Ñ4Ô4Ð4øð	5õ
 ˜A�uÑ%Ô%ð ØÔ"×)Ò)¨!Ñ,Ô,Ð,Ñ,å)ØcÝ�˜Q™œ‘L”Lñô ð ð ˆðXÝÔ/°´	Ñ:Ô:ˆˆøÝð Xð Xð XÝÐOÀ#Ä)ÐOÐOÑPÔPÐVWÐWøøøøðXøøøà€FÔØ—k’k‘m”m€F„OÝ
„}˜ÒÐå˜ÑÔÐà€Ms   ÈH5 È5
IÈ?IÉIc                ó²  — t          | t          j        ¦  «        st          | |¦  «        S | j        }|t
          j        k    r1|j        d         d         dk    rt          j	        }t          j
        }�nÓ|t
          j        k    r1|j        d         d         dk    rt          j        }t          j
        }�n’|t
          j        k    r1|j        d         d         dk    rt          j        }t          j
        }�nQ|t
          j        k    r1|j        d         d         dk    rt          j        }t          j
        }�n|t
          j        k    r0|j        d         d         dk    rt          j        }t          j        }nÐ|t
          j        k    r0|j        d         d         dk    rt          j        }t          j        }n�|t
          j        k    r0|j        d         d         dk    rt          j        }t          j
        }nP|t
          j        k    r0|j        d         d         d	k    rt          j        }t          j
        }nt          | |¦  «        S |t          j        t          j        t          j        fv rÂ|                      |¦  «                             ¦   «         }|j        d
z  dk    rt=          d| j        › d�¦  «        ‚|ddd
…         dz  |ddd
…         dz  z   }t          ¦   «         }|j          !                    | j        ¦  «         |r||_"        | #                    ¦   «         |_$        ||_%        |S t          |                      |¦  «        |¦  «        }||_%        |S )a  Converts an array into a TensorProto including
    supported type defined in :mod:`onnx._custom_element_types`.

    Args:
        tensor: a numpy array.
        name: (optional) the name of the tensor.

    Returns:
        TensorProto: the converted tensor def.
    r   Úe4m3fnÚe4m3fnuzÚe5m2Úe5m2fnuzr¸   rÄ   rÂ   rÆ   r   r   zIThe conversion of a tensor of INT4 or UINT4 requires an even size (shape=z+). Every byte stores two INT4 or two UINT4.Nrc   rF   )&rØ   r.   rÙ   rë   rr   r·   rº   Údescrr	   r¹   rŽ   r¼   r»   r¾   r½   rÀ   r¿   r¸   rµ   rÉ   rÄ   rÃ   r•   rÂ   rÁ   rÆ   rÅ   r0   ru   rw   rK   r-   r#   rÜ   rÕ   r´   r¤   r§   )	r›   rÕ   ÚdtÚtoÚdt_toÚvalueÚbufferÚpbÚts	            r   Ú
from_arrayrù     së  € õ �f�bœjÑ)Ô)ð )Ý˜6 4Ñ(Ô(Ð(à	Œ€BØ	�_Ô)Ò)Ð)¨b¬h°q¬k¸!¬nÀÒ.HÐ.HÝÔ%ˆÝ”ˆ‰Ø	�Ô-Ò	-Ð	-°"´(¸1´+¸a´.ÀJÒ2NÐ2NÝÔ'ˆÝ”ˆ‰Ø	�Ô)Ò	)Ð	)¨b¬h°q¬k¸!¬nÀÒ.FÐ.FÝÔ#ˆÝ”ˆ‰Ø	�Ô-Ò	-Ð	-°"´(¸1´+¸a´.ÀJÒ2NÐ2NÝÔ'ˆÝ”ˆ‰Ø	�Ô'Ò	'Ð	'¨B¬H°Q¬K¸¬N¸jÒ,HÐ,HÝÔ!ˆÝ”	ˆˆØ	�Ô#Ò	#Ð	#¨¬°¬°A¬¸&Ò(@Ð(@ÝÔˆÝ”ˆˆØ	�Ô$Ò	$Ð	$¨¬°!¬°Q¬¸7Ò)BÐ)BÝÔˆÝ”ˆˆØ	�Ô)Ò	)Ð	)¨b¬h°q¬k¸!¬nÀÒ.LÐ.LÝÔ#ˆÝ”ˆˆå˜6 4Ñ(Ô(Ð(à	�kÔ¥Ô!1µ;Ô3IÐJÐJÐJØ—’˜eÑ$Ô$×*Ò*Ñ,Ô,ˆØŒ:˜‰>˜QÒÐÝðTØ œ,ðTð Tð Tñô ð ð ˜˜˜!˜”*˜tÑ#¨¨a¨d°¨d¬°qÑ(8Ñ9ˆå‰]Œ]ˆØ
Œ�Š�v”|Ñ$Ô$Ð$Øð 	ØˆBŒGØ—n’nÑ&Ô&ˆŒØˆŒØˆ	å�F—M’M %Ñ(Ô(¨$Ñ/Ô/€AØ€A„KØ€Hr   Úsequencer   ú	list[Any]c                ó6  — | j         }|t          j        k    rd„ | j        D ¦   «         S |t          j        k    rd„ | j        D ¦   «         S |t          j        k    rd„ | j        D ¦   «         S |t          j        k    rd„ | j	        D ¦   «         S t          d¦  «        ‚)z“Converts a sequence def to a Python list.

    Args:
        sequence: a SequenceProto object.

    Returns:
        list: the converted list.
    c                ó,   — g | ]}t          |¦  «        ‘ŒS r)   ©rÓ   ©r   Úvs     r   r   zto_list.<locals>.<listcomp>d  s   € Ð<Ð<Ð< •˜‘”Ð<Ð<Ð<r   c                ó,   — g | ]}t          |¦  «        ‘ŒS r)   rþ   rÿ   s     r   r   zto_list.<locals>.<listcomp>f  s   € ÐCÐCÐC •˜‘”ÐCÐCÐCr   c                ó,   — g | ]}t          |¦  «        ‘ŒS r)   )Úto_listrÿ   s     r   r   zto_list.<locals>.<listcomp>h  s   € Ð=Ð=Ð=˜q•˜‘
”
Ð=Ð=Ð=r   c                ó,   — g | ]}t          |¦  «        ‘ŒS r)   )Úto_dictrÿ   s     r   r   zto_list.<locals>.<listcomp>j  s   € Ð8Ð8Ð8˜q•˜‘
”
Ð8Ð8Ð8r   z8The element type in the input sequence is not supported.)Ú	elem_typer   ÚTENSORÚtensor_valuesÚSPARSE_TENSORÚsparse_tensor_valuesÚSEQUENCEÚsequence_valuesÚMAPÚ
map_valuesr©   )rú   r  s     r   r  r  Y  s¯   € ð Ô"€IØ•MÔ(Ò(Ð(Ø<Ð< XÔ%;Ð<Ñ<Ô<Ð<Ø•MÔ/Ò/Ð/ØCÐC XÔ%BÐCÑCÔCÐCØ•MÔ*Ò*Ð*Ø=Ð= HÔ$<Ð=Ñ=Ô=Ð=Ø•MÔ%Ò%Ð%Ø8Ð8 HÔ$7Ð8Ñ8Ô8Ð8Ý
ÐNÑ
OÔ
OÐOr   Úlstrr   ú
int | Nonec                óJ  ‡ — t          ¦   «         }|r||_        |r|}nxt          ‰ ¦  «        dk    rY‰ d         }t          |t          ¦  «        rt           j        }n;t          |t          ¦  «        rt           j        }nt           j        }nt           j        }||_	        t          ‰ ¦  «        dk    r*t          ˆ fd„‰ D ¦   «         ¦  «        st          d¦  «        ‚|t           j        k    r.‰ D ]*}|j                             t          |¦  «        g¦  «         Œ+n‹|t           j        k    r.‰ D ]*}|j                             t!          |¦  «        g¦  «         Œ+nM|t           j        k    r.‰ D ]*}|j                             t%          |¦  «        g¦  «         Œ+nt          d¦  «        ‚|S )a]  Converts a list into a sequence def.

    Args:
        lst: a Python list
        name: (optional) the name of the sequence.
        dtype: (optional) type of element in the input list, used for specifying
                          sequence values when converting an empty list.

    Returns:
        SequenceProto: the converted sequence def.
    r   c              3  ó^   •K  — | ]'}t          |t          ‰d          ¦  «        ¦  «        V — Œ(dS )r   N)rØ   rÛ   )r   Úelemr  s     €r   ú	<genexpr>zfrom_list.<locals>.<genexpr>�  s7   øè è € Ð!QÐ!QÀT¥*¨Tµ4¸¸A¼±<´<Ñ"@Ô"@Ð!QÐ!QÐ!QÐ!QÐ!QÐ!Qr   zqThe element type in the input list is not the same for all elements and therefore is not supported as a sequence.zZThe element type in the input list is not a tensor, sequence, or map and is not supported.)r   rÕ   r   rØ   Údictr  Úlistr  r  r  Úallr©   r  rÜ   rù   r  Ú	from_listr  Ú	from_dict)	r  rÕ   rr   rú   r  Ú
first_elemr›   ÚseqÚmappings	   `        r   r  r  n  sØ  ø€ õ ‰Œ€HØð ØˆŒàð )Øˆ	ˆ	Ý	ˆS‰Œ�AŠˆØ˜”Vˆ
Ý�j¥$Ñ'Ô'ð 	-Ý%Ô)ˆIˆIÝ˜
¥DÑ)Ô)ð 	-Ý%Ô.ˆIˆIå%Ô,ˆIˆIõ "Ô(ˆ	Ø"€HÔåˆC‰Œ�1Šˆ�cÐ!QÐ!QÐ!QÐ!QÈSÐ!QÑ!QÔ!QÑQÔQˆÝðMñ
ô 
ð 	
ð
 •MÔ(Ò(Ð(Øð 	@ð 	@ˆFØÔ"×)Ò)­:°fÑ+=Ô+=Ð*>Ñ?Ô?Ð?Ð?ð	@à	•mÔ,Ò	,Ð	,Øð 	>ð 	>ˆCØÔ$×+Ò+­Y°s©^¬^Ð,<Ñ=Ô=Ð=Ð=ð	>à	•mÔ'Ò	'Ð	'Øð 	=ð 	=ˆGØÔ×&Ò&­	°'Ñ(:Ô(:Ð';Ñ<Ô<Ð<Ð<ð	=õ ð5ñ
ô 
ð 	
ð €Or   Ú	map_protor   údict[Any, Any]c                óT  — g }| j         t          j        k    rt          | j        ¦  «        }nt          | j        ¦  «        }t          | j        ¦  «        }t          |¦  «        t          |¦  «        k    rt          d| j
        d¦  «        ‚t          t          ||¦  «        ¦  «        }|S )z�Converts a map def to a Python dictionary.

    Args:
        map_proto: a MapProto object.

    Returns:
        The converted dictionary.
    z2Length of keys and values for MapProto (map name: z) are not the same.)Úkey_typer	   r­   r  Ústring_keysÚkeysr  Úvaluesr   Ú
IndexErrorrÕ   r  Úzip)r  Úkey_listÚ
value_listÚ
dictionarys       r   r  r  §  sž   € ð €HØÔ�[Ô/Ò/Ð/Ý˜	Ô-Ñ.Ô.ˆˆå˜	œÑ'Ô'ˆå˜Ô)Ñ*Ô*€JÝ
ˆ8�}„}�˜J™œÒ'Ð'ÝØ@ØŒNØ!ñ
ô 
ð 	
õ
 •c˜( JÑ/Ô/Ñ0Ô0€JØÐr   Údict_c                óv  ‡‡	— t          ¦   «         }|r||_        t          | ¦  «        }t          j        |d         ¦  «        Št          j        ‰¦  «        }t          j        t          j	        t          j
        t          j        t          j        t          j        t          j        t          j        g}t!          ˆfd„|D ¦   «         ¦  «        st#          d¦  «        ‚t          |                      ¦   «         ¦  «        }t          j        |d         ¦  «        Š	t!          ˆ	fd„|D ¦   «         ¦  «        st#          d¦  «        ‚t'          |¦  «        }||_        |t          j        k    r|j                             |¦  «         n||v r|j                             |¦  «         |j                             |¦  «         |S )zÂConverts a Python dictionary into a map def.

    Args:
        dict_: Python dictionary
        name: (optional) the name of the map.

    Returns:
        MapProto: the converted map def.
    r   c              3  óH   •K  — | ]}t          j        |¦  «        ‰k    V — Œd S ro   ©r.   Úresult_type)r   ÚkeyÚraw_key_types     €r   r  zfrom_dict.<locals>.<genexpr>Ý  s2   øè è € ÐDÐD¸•”˜sÑ#Ô# |Ò3ÐDÐDÐDÐDÐDÐDr   zfThe key type in the input dictionary is not the same for all keys and therefore is not valid as a map.c              3  óH   •K  — | ]}t          j        |¦  «        ‰k    V — Œd S ro   r,  )r   r†   Úraw_value_types     €r   r  zfrom_dict.<locals>.<genexpr>å  s2   øè è € ÐGÐG¸�rŒ~˜cÑ"Ô" nÒ4ÐGÐGÐGÐGÐGÐGr   zjThe value type in the input dictionary is not the same for all values and therefore is not valid as a map.)r   rÕ   r  r.   r-  r
   rà   r	   ÚINT8ÚINT16ÚINT32ÚINT64ÚUINT8ÚUINT16ÚUINT32ÚUINT64r  r©   r#  r  r   r­   r!  rÜ   r"  ÚCopyFrom)
r)  rÕ   r  r"  r   Úvalid_key_int_typesr#  Ú	value_seqr/  r1  s
           @@r   r  r  Á  sª  øø€ õ ‘
”
€IØð Øˆ	ŒÝ�‰;Œ;€DÝ”> $ q¤'Ñ*Ô*€LÝÔ.¨|Ñ<Ô<€Hõ 	ÔÝÔÝÔÝÔÝÔÝÔÝÔÝÔð	Ðõ ÐDÐDÐDÐD¸tÐDÑDÔDÑDÔDð 
Ýð@ñ
ô 
ð 	
õ
 �%—,’,‘.”.Ñ!Ô!€FÝ”^ F¨1¤IÑ.Ô.€NÝÐGÐGÐGÐGÀÐGÑGÔGÑGÔGð 
ÝðBñ
ô 
ð 	
õ
 ˜&Ñ!Ô!€Ià!€IÔØ•;Ô%Ò%Ð%ØÔ×$Ò$ TÑ*Ô*Ð*Ð*Ø	Ð(Ð	(Ð	(ØŒ×Ò˜dÑ#Ô#Ð#ØÔ×Ò˜iÑ(Ô(Ð(ØÐr   Úoptionalr   ú
Any | Nonec                óº  — | j         }|t          j        k    rdS |t          j        k    rt	          | j        ¦  «        S |t          j        k    rt	          | j        ¦  «        S |t          j        k    rt          | j
        ¦  «        S |t          j        k    rt          | j        ¦  «        S |t          j        k    rt          | j        ¦  «        S t#          d¦  «        ‚)zœConverts an optional def to a Python optional.

    Args:
        optional: an OptionalProto object.

    Returns:
        opt: the converted optional.
    Nz8The element type in the input optional is not supported.)r  r   r¨   r  rÓ   Útensor_valuer	  Úsparse_tensor_valuer  r  Úsequence_valuer  r  Ú	map_valueÚOPTIONALÚto_optionalÚoptional_valuer©   )r=  r  s     r   rE  rE  ö  sÉ   € ð Ô"€IØ•MÔ+Ò+Ð+ØˆtØ•MÔ(Ò(Ð(Ý˜Ô-Ñ.Ô.Ð.Ø•MÔ/Ò/Ð/Ý˜Ô4Ñ5Ô5Ð5Ø•MÔ*Ò*Ð*Ý�xÔ.Ñ/Ô/Ð/Ø•MÔ%Ò%Ð%Ý�xÔ)Ñ*Ô*Ð*Ø•MÔ*Ò*Ð*Ý˜8Ô2Ñ3Ô3Ð3Ý
ÐNÑ
OÔ
OÐOr   Úoptc                óà  — t          ¦   «         }|r||_        |�5|t           j                             ¦   «         vrt	          |› d�¦  «        ‚|}n_t          | t          ¦  «        rt           j        }n=t          | t          ¦  «        rt           j	        }n| €t           j
        }nt           j        }||_        | �·|t           j        k    r(|j                             t          | ¦  «        ¦  «         n|t           j	        k    r(|j                             t#          | ¦  «        ¦  «         nG|t           j        k    r(|j                             t'          | ¦  «        ¦  «         nt	          d¦  «        ‚|S )a¬  Converts an optional value into a Optional def.

    Args:
        opt: a Python optional
        name: (optional) the name of the optional.
        dtype: (optional) type of element in the input, used for specifying
                          optional values when converting empty none. dtype must
                          be a valid OptionalProto.DataType value

    Returns:
        optional: the converted optional def.
    Nz( must be a valid OptionalProto.DataType.zUThe element type in the input is not a tensor, sequence, or map and is not supported.)r   rÕ   ÚDataTyper#  r©   rØ   r  r  r  r  r¨   r  r  r@  r:  rù   rB  r  rC  r  )rG  rÕ   rr   r=  r  s        r   Úfrom_optionalrJ    s^  € õ  ‰Œ€HØð ØˆŒàÐà�Ô.×5Ò5Ñ7Ô7Ð7Ð7Ý˜uÐNÐNÐNÑOÔOÐOØˆ	ˆ	Ý	�C�Ñ	Ô	ð )Ý!Ô%ˆ	ˆ	Ý	�C�Ñ	Ô	ð )Ý!Ô*ˆ	ˆ	Ø	ˆÝ!Ô+ˆ	ˆ	å!Ô(ˆ	à"€HÔà
€Ø�Ô,Ò,Ð,ØÔ!×*Ò*­:°c©?¬?Ñ;Ô;Ð;Ð;Ø�-Ô0Ò0Ð0ØÔ#×,Ò,­Y°s©^¬^Ñ<Ô<Ð<Ð<Ø�-Ô+Ò+Ð+ØÔ×'Ò'­	°#©¬Ñ7Ô7Ð7Ð7åð9ñô ð ð €Or   ÚNonec                óÄ   — | j         }t          j        |¦  «        }t          j        | j        |¬¦  «                             ¦   «                              ¦   «         | _        dS )znCall to convert endianness of raw data in tensor.

    Args:
        tensor: TensorProto to be converted.
    rq   N)r§   r
   rª   r.   r²   r¤   r³   r´   )r›   rÍ   rÎ   s      r   rè   rè   B  sS   € ð Ô#€LÝÔ.¨|Ñ<Ô<€Hå
Œ�f”o¨XÐ6Ñ6Ô6×?Ò?ÑAÔA×IÒIÑKÔKð „O€O€Or   r   Úinput_shapeú
tuple[int]únp.dtypeÚseedc           	     ó¦  — t           j                             |¦  «         |t           j        t           j        t           j        t           j        t           j        t           j        t           j	        t           j
        fv rÅt          t          j        |¦  «        j        t          j        t           j	        ¦  «        j        ¦  «        }t          t          j        |¦  «        j        t          j        t           j	        ¦  «        j        ¦  «        }t           j                             ||| ¬¦  «                             |¦  «        S t!          |› d�¦  «        ‚)a'  Create random integer array for backend/test/case/node.

    Args:
        input_shape: The shape for the returned integer array.
        dtype: The NumPy data type for the returned integer array.
        seed: The seed for np.random.

    Returns:
        np.ndarray: Random integer array.
    )rw   z' is not supported by create_random_int.)r.   ÚrandomrP  rŽ   rÉ   rM   Úuint64r•   r¶   r1   Úint64ÚminÚiinfoÚmaxÚrandintr0   r©   )rM  rr   rP  ÚendÚstarts        r   Úcreate_random_intr[  O  sè   € õ „I‡N‚N�4ÑÔÐØÝ
ŒÝ
Œ	Ý
Œ	Ý
Œ	Ý
ŒÝ
ŒÝ
ŒÝ
Œð	ð 	ð 	õ •"”(˜5‘/”/Ô%¥r¤xµ´Ñ'9Ô'9Ô'=Ñ>Ô>ˆÝ•B”H˜U‘O”OÔ'­¬µ"´(Ñ);Ô);Ô)?Ñ@Ô@ˆÝŒy× Ò  ¨°+Ð Ñ>Ô>×EÒEÀeÑLÔLÐLå˜5ÐIÐIÐIÑJÔJÐJr   )r   r   r   r   ro   )r!   r"   r#   r$   r   r%   )r7   r8   r9   r:   r;   r:   r   r<   )NTF)
r!   r"   r#   r$   r9   r:   r;   r:   r   r%   )NFF)r!   rj   r#   rk   rl   r:   r   r%   )r+   r~   r   r   )r!   r~   r#   r   r   r%   )r!   r~   r#   r   r   r~   )r+   r~   r   r“   )r!   r~   r#   r   r   r“   )rš   )r›   r	   rœ   r�   r   r%   )rÔ   r%   rÕ   rÖ   r   r	   )r›   r%   rÕ   rÖ   r   r	   )rú   r   r   rû   )NN)r  rû   rÕ   rÖ   rr   r  r   r   )r  r   r   r  )r)  r  rÕ   rÖ   r   r   )r=  r   r   r>  )rG  r>  rÕ   rÖ   rr   r  r   r   )r›   r	   r   rK  )r   )rM  rN  rr   rO  rP  r8   r   r%   )6Ú
__future__r   r°   Útypingr   r   Únumpyr.   Únumpy.typingÚnptÚtyping_extensionsÚonnx._custom_element_typesÚ_custom_element_typesr·   Úonnxr   r   r   r	   r
   r   Úonnx.external_data_helperr   r   Úcollections.abcr   r   Ú
deprecatedÚDeprecationWarningr6   rU   Ú	vectorizerY   r[   rf   rh   ri   r}   r‡   rŠ   r‰   r–   r™   rÓ   rë   rù   r  r  r  r  rE  rJ  rè   r[  r)   r   r   ú<module>rj     s-  ðð #Ð "Ð "Ð "Ð "Ð "à 
€
€
€
Ø %Ð %Ð %Ð %Ð %Ð %Ð %Ð %à Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð à 4Ð 4Ð 4Ð 4Ð 4Ð 4Ø UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UÐ UØ WÐ WÐ WÐ WÐ WÐ WÐ WÐ Wàð )Ø(Ð(Ð(Ð(Ð(Ð(ðLð Lð Lð Lð ÐÔØvØðñ ô ð (,ðGð Gð Gð Gñ	ô ðGð.'ð 'ð 'ð 'ðT &˜œØ!¨T°4¨Lðñ ô Ð ð
 ÐÔØvØðñ ô ð (,ØØð	ð ð ð ñ	ô ðð<%ð %ð %ð %ðP &˜œØ!¨T°4¨Lðñ ô Ð ð
 ÐÔØvØðñ ô ð (,ØØð	ð ð ð ñ	ô ðð4 ÐÔØeØðñ ô ðð ð ñ	ô ððBð ð ð ð./ð /ð /ð /ð&ð ð ð ð2@ð @ð @ð @ð
,ð ,ð ,ð ,ð$FSð FSð FSð FSð FSðR>ð >ð >ð >ð >ðB=ð =ð =ð =ð =ð@Pð Pð Pð Pð, BFð6ð 6ð 6ð 6ð 6ðrð ð ð ð42ð 2ð 2ð 2ð 2ðjPð Pð Pð Pð4 CGð0ð 0ð 0ð 0ð 0ðf
ð 
ð 
ð 
ð ;<ðKð Kð Kð Kð Kð Kð Kr   