
    kh                     @    d dl mZmZ d ZdefdZedk(  r ed      y)    )_compile_graph_to_code_table_generate_upgraders_graphc                 R    fdi }| D ]  }|d   }|d   } |      }|||<    |S )Nc                 ^    t        | t              s| S | D cg c]
  } |       c}S c c}w N)
isinstancetuple)contentilistifys     W/var/www/teggl/fontify/venv/lib/python3.12/site-packages/torch/jit/generate_bytecode.pyr   z format_bytecode.<locals>.listify   s*    '5)N$+,q
,,,s   *r       )tableformatted_tableentry
identifierr
   r   s        @r   format_bytecoder      sL    -
 O .1X
('"&-
#	.
     returnc                      g } t               }|j                         D ]/  \  }}t        ||      }|t        |      i}| j	                  |       1 | S r   )r   itemsr   r   append)yaml_contentupgraders_graph_mapupgrader_nameupgrader_graphbytecode_tabler   s         r   generate_upgraders_bytecoder      s^    L35)<)B)B)D #%~5m^T ?@E"# r   __main__z)This file is not meant to be run directlyN)torch._Cr   r   r   listr   __name__RuntimeErrorr   r   r   <module>r%      s7    M T  z
B
CC r   