
    JThm                        S SK Jr  S SKJr  \" SS9 " S S5      5       r      SS jr      SS jr      SS	 jrSS
 jrg)    )annotations)	dataclassT)frozenc                      \ rS rSr% S\S'   S\S'   S\S'   S\S'   S\S	'   \      SS
 j5       r\    SS j5       rSS jrSr	g)SelectiveBuildOperator   strnameboolis_root_operatoris_used_for_traininginclude_all_overloadstuple[str, ...] | None_debug_infoc           
     ~   1 Skn[        [        UR                  5       5      U-
  5      S:  aC  [        SR	                  SR                  [        UR                  5       5      U-
  5      5      5      eSU;   a
  XS   :X  d   eUR                  SS5      n[        U[        5      (       d   eUR                  SS5      n[        U[        5      (       d   eUR                  S	S5      n[        U[        5      (       d   eS nS
U;   a.  US
   n[        U[        5      (       d   e[        S U 5       5      n[        U UUUUS9$ )N>   r
   
debug_infor   r   r   r   z!Got unexpected top level keys: {},r
   r   Tr   r   r   c              3  8   #    U  H  n[        U5      v   M     g 7fN)r	   ).0xs     Y/var/www/auris/envauris/lib/python3.13/site-packages/torchgen/selective_build/operator.py	<genexpr>8SelectiveBuildOperator.from_yaml_dict.<locals>.<genexpr>W   s     7w!s1vvws   r
   r   r   r   r   )lensetkeys	Exceptionformatjoinget
isinstancer   listtupler   )op_nameop_infoallowed_keysr   r   r   r   di_lists           r   from_yaml_dict%SelectiveBuildOperator.from_yaml_dict4   sA   
 s7<<>"\12Q63::HHS0<?@  Wfo---";;'94@*D1111&{{+A4H.5555 ',CT J/6666-1
7"l+Ggt,,,,7w77J%-!5"7"
 	
    c                    [        U SSSS S9$ )NTr   )r   )r
   s    r   *from_legacy_operator_name_without_overloadASelectiveBuildOperator.from_legacy_operator_name_without_overloada   s      &!!%"&
 	
r,   c                    U R                   U R                  U R                  S.nU R                  b  U R                  US'   U$ )N)r   r   r   r   )r   r   r   r   )selfrets     r   to_dictSelectiveBuildOperator.to_dictm   sG     $ 5 5$($=$=%)%?%?"

 ' $ 0 0C
r,    N)r&   r	   r'   dict[str, object]returnr   )r
   r	   r7   r   )r7   r6   )
__name__
__module____qualname____firstlineno____annotations__staticmethodr*   r.   r3   __static_attributes__r5   r,   r   r   r      s}     I     ('*
*
0*
	*
 *
X 	
	
		
 	
	r,   r   c                b    U c  Uc  g [        [        U =(       d    SU=(       d    S-   5      5      $ )Nr5   )r%   r   lhsrhss     r   merge_debug_inforC   y   s-    
 {s{ciRCI2./00r,   c           
        [        U R                  5      [        UR                  5      :w  a8  [        S[        U R                  5       S[        UR                  5       S35      e[        U R                  U R                  =(       d    UR                  U R
                  =(       d    UR
                  U R                  =(       d    UR                  [        U R                  UR                  5      S9$ )Nz8Expected both arguments to have the same name, but got 'z' and 'z	' insteadr   )	r	   r
   r   r   r   r   r   rC   r   r@   s     r   combine_operatorsrE      s     388}CHH%Fs388}oU\]`adaiai]j\kktu
 	
 "XX --E1E1E !55Q9Q9Q!77T3;T;T$S__cooF r,   c                    0 n[        U R                  5       5      [        UR                  5       5      -    H  u  p4UnX2;   a  [        X#   U5      nXRU'   M      U$ r   )r$   itemsrE   )rA   rB   	operatorsr&   opnew_ops         r   merge_operator_dictsrK      sZ     46ICIIK(4		+<<&y'92>F#' = r,   c                *    U R                  S5      S   $ )N.r   )split)r&   s    r   strip_operator_overload_namerO      s    ==a  r,   N)rA   r   rB   r   r7   r   )rA   r   rB   r   r7   r   )rA   !dict[str, SelectiveBuildOperator]rB   rP   r7   rP   )r&   r	   r7   r	   )	
__future__r   dataclassesr   r   rC   rE   rK   rO   r5   r,   r   <module>rS      s    " ! $i i iX1	1	1 1	&<.	*	* '!r,   