
    bIgC                     2   d dl mZ d dlZd dlmZmZmZmZmZ d dl	Z
d dlmZmZmZ  G d de      Zi  eej"                         e e
j$                  d       eej"                        d       eej&                         e e
j$                  d	       eej(                        d
       eej*                         e e
j$                  d       eej(                        d       eej,                         e e
j$                  d       eej(                        d       eej.                         e e
j$                  d       eej(                        d       eej(                         e e
j$                  d       eej(                        d       eej0                         e e
j$                  d       eej0                        d       eej2                         e e
j$                  d       eej(                        d       eej4                         e e
j$                  d       eej,                        d       eej6                         e e
j$                  d       eej,                        d       eej8                         e e
j$                  d       eej8                        d       eej:                         e e
j$                  d       eej"                        d       eej<                         e e
j$                  d       eej8                        d       eej>                         e e
j$                  d        eej>                        d!       eej@                         e e
j$                  d"       eej@                        d#       eejB                         e e
j$                  d$       eejB                        d%       eejD                         e e
j$                  d       eej&                        d&       eejF                         e e
j$                  d       eej&                        d'       eejH                         e e
j$                  d       eej&                        d(       eejJ                         e e
j$                  d       eej&                        d)       eejL                         e e
j$                  d	       eej(                        d*       eejN                         e e
j$                  d       eej(                        d+      iZ( G d, d-e)      Z* e*e(jW                         D  ci c]  \  } }| |jX                   c}} d.d/      Z- e*e(jW                         D  ci c]  \  } }| |j\                   c}} d0d1      Z/e-jW                         D ci c]Y  \  }}|ej6                  ejD                  ejF                  ejH                  ejJ                  ejL                  ejN                  fvr||[ c}}Z0 e* eeeeee1ef   f   e0      d2d3      Z2 eej"                        d4 eej(                        d5 eej0                        d6 eej&                        d5 eej,                        d5 eej8                        d7 eej:                        d4 eej<                        d7 eej>                        d8 eej@                        d8 eejB                        d9 eej2                        d5iZ3 e* eeeeee1ef   f   e3      d:      Z4 e* eejj                        d; eejl                        d< eejn                        d= eejp                        d> eejr                        d?id@      Z: e* eejj                        dA eejl                        dB eejn                        dC eejp                        dD eejr                        d?idE      Z;yc c}} w c c}} w c c}}w )F    )annotationsN)AnyDict
NamedTupleUnioncast)OptionalProtoSequenceProtoTensorProtoc                  ,    e Zd ZU ded<   ded<   ded<   y)TensorDtypeMapznp.dtypenp_dtypeintstorage_dtypestrnameN)__name__
__module____qualname____annotations__     I/var/www/html/answerous/venv/lib/python3.12/site-packages/onnx/mapping.pyr   r      s    
Ir   r   float32zTensorProto.FLOATuint8zTensorProto.UINT8int8zTensorProto.INT8uint16zTensorProto.UINT16int16zTensorProto.INT16int32zTensorProto.INT32int64zTensorProto.INT64boolzTensorProto.BOOLfloat16zTensorProto.FLOAT16zTensorProto.BFLOAT16float64zTensorProto.DOUBLE	complex64zTensorProto.COMPLEX64
complex128zTensorProto.COMPLEX128uint32zTensorProto.UINT32uint64zTensorProto.UINT64objectzTensorProto.STRINGzTensorProto.FLOAT8E4M3FNzTensorProto.FLOAT8E4M3FNUZzTensorProto.FLOAT8E5M2zTensorProto.FLOAT8E5M2FNUZzTensorProto.UINT4zTensorProto.INT4c                  F     e Zd Z	 d	 	 	 	 	 	 	 d fdZddZd fdZ xZS )DeprecatedWarningDictc                @    t         |   |       || _        || _        y )N)super__init___origin_function_future_function)self
dictionaryoriginal_functionfuture_function	__class__s       r   r-   zDeprecatedWarningDict.__init___   s"     	$ 1 /r   c                    t        |t              sy| j                  |j                  k(  xr | j                  |j                  k(  S )NF)
isinstancer*   r.   r/   )r0   others     r   __eq__zDeprecatedWarningDict.__eq__i   sC    %!67!!U%;%;; @%%)?)??	
r   c           	     "   | j                   s4t        j                  t        d| j                   d      t
        d       n@t        j                  t        d| j                   d| j                    d      t
        d       t        |   |      S )Nz	`mapping.z` is now deprecated and will be removed in a future release.To silence this warning, please simply use if-else statement to get the corresponding value.   )
stacklevelzh` is now deprecated and will be removed in a future release.To silence this warning, please use `helper.z
` instead.)r/   warningswarnr   r.   DeprecationWarningr,   __getitem__)r0   keyr4   s     r   r?   z!DeprecatedWarningDict.__getitem__q   s    $$MM 5 56 7s s # MM 5 56 7CCGCXCXBYYce # w"3''r   ) )r1   zdict[int, int | str | np.dtype]r2   r   r3   r   returnNone)r7   r(   rB   r!   )r@   zint | str | np.dtyperB   r   )r   r   r   r-   r8   r?   __classcell__)r4   s   @r   r*   r*   ^   sB    
  "	030 0 	0
 
0
( (r   r*   TENSOR_TYPE_TO_NP_TYPEtensor_dtype_to_np_dtype"TENSOR_TYPE_TO_STORAGE_TENSOR_TYPE$tensor_dtype_to_storage_tensor_dtypeNP_TYPE_TO_TENSOR_TYPEnp_dtype_to_tensor_dtype
float_data
int32_data
int64_datadouble_datauint64_datastring_dataSTORAGE_TENSOR_TYPE_TO_FIELDtensor_valuessparse_tensor_valuessequence_values
map_valuesoptional_valueSTORAGE_ELEMENT_TYPE_TO_FIELDtensor_valuesparse_tensor_valuesequence_value	map_valueOPTIONAL_ELEMENT_TYPE_TO_FIELD)<
__future__r   r<   typingr   r   r   r   r   numpynponnxr	   r
   r   r   r   FLOATdtypeUINT8INT32INT8UINT16INT16INT64BOOLFLOAT16BFLOAT16DOUBLE	COMPLEX64
COMPLEX128UINT32UINT64STRINGFLOAT8E4M3FNFLOAT8E4M3FNUZ
FLOAT8E5M2FLOAT8E5M2FNUZUINT4INT4TENSOR_TYPE_MAPdictr*   itemsr   rE   r   rG   _NP_TYPE_TO_TENSOR_TYPEr   rI   _STORAGE_TENSOR_TYPE_TO_FIELDrQ   TENSORSPARSE_TENSORSEQUENCEMAPOPTIONALrW   r\   )tensor_dtypevaluekvs   0000r   <module>r      sM   #  5 5  : :Z FNS!2!235HF N3{0013F	F >#k//02DF ^C 1 124HF N3{0013FF  N3{0013F!F& N3{0013F'F, >#k//02D-F2 nS!3!346K3F: ~S!3!346L ;F@ ^S!3!346JAFF s;#4#457N!GFL K$6$6 79Q"MFR ^C 2 235ISFX ^C 2 235IYF^ ^C 2 235I_Ff   !>S!2!235O$gFl ""#^S!2!235Q& S!2!235M" ""#^S!2!235Q& N3{0013F >#k//02DGFR&(D &(T /=L=R=R=TU&9lE\5>>!U  &; $3#8#8#:L% 	e))) )*& " ',,.1  """"	 qD " /c5c3''	(*AB  LLLL\]]]]<!   5c5c3''	(*GH"   !6M  !?M''(*@M""#%6MM""#%5 $	!  "7M  !>M''(*?M""#%5MM""#%5 %	" ] Vs   #`
`
A`