
    
NgU              	       z    d dl mZmZmZ d dlmZmZ deeef         deeeeedf         ef         f         fdZ	dS )    )AnyDictUnion)OpRun_split_class_namemodule_contextreturnNc           	         i }|                                  D ]\  }}|                    d          s|dv rt          |t          t                              rB	 t          |t                    }n)# t          $ r}t          d|d|d          |d }~ww xY w|r&t          |          \  }}||vri ||<   |||         |<   |st          d          |
                                D ]!}d |v rt          |          }	||	         |d <   "|S )N_>
   clr   r   Listr   textwrap	TOptional
class_name
get_schemar   zUnexpected variable type z and class_name=.zNo registered operator. This error happens when no implementation of type 'OpRun' was detected. It may be due to an error during installation. Please try reinstalling onnx.)items
startswith
isinstancetype%build_registered_operators_any_domain
issubclassr   	TypeErrorr   RuntimeErrorvaluesmax)
r   reg_opsr   
class_typeissubeop_type
op_versionimplmax_versions
             W/var/www/html/ai-engine/env/lib/python3.11/site-packages/onnx/reference/ops/_helpers.pyr   r      s{    9;G"0"6"6"8"8 6 6
J  %% 	 8
 *
 *
 j$'L"M"MNN 		z511EE 	 	 	YJYY*YYY 	  	6"3J"?"?GZg%%#% +5GGZ( 
y
 
 	

    ' '4<<$ii+&T

Ns   A00
B:BB)
typingr   r   r   onnx.reference.op_runr   r   strintr        r%   <module>r,      s    $ # # # # # # # # # : : : : : : : :+cN+	#tE#t)$e+,
,-+ + + + + +r+   