
    shs                     :    S SK Jr  S\S\4S jrS\S\\   4S jrg)    )Optional	case_namereturnc                 ~    SSK Jn  SSKJn  U" 5       nX;   a  U R	                  SS5      nSU  SU 3$ U" S	U S
9  U  S3$ )N   )all_examplesr   )log_export_usage_-zSee zo in exportdb for unsupported case.                 https://pytorch.org/docs/main/generated/exportdb/index.html#zexport.error.casenotregistered)eventmessagez is unsupported.)examplesr   torch._utils_internalr	   replace)r   r   r	   ALL_EXAMPLESurl_case_names        l/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/torch/_export/db/logging.pyexportdb_error_messager      se    &6>L !))#s3i[ !MMZO] 	] 	2	
 ,--    ec                     SSK JnJnJn  SnSnX%X5US0n[	        U 5      U;   a  U[	        U 5         nUc  U$ [        XS5      $ g)zY
Returns a string case name if the export error e is classified.
Returns None otherwise.
r   )TorchRuntimeErrorUnsupported	UserErroralways_classifiedr   N)torch._dynamo.excr   r   r   typegetattr)r   r   r   r   ALWAYS_CLASSIFIEDDEFAULT_CLASS_SIGIL_ALLOW_LIST	attr_names           r   get_class_if_classified_errorr#      sc     LK+% 	4K
 Aw+Q(	$$qT**r   N)typingr   strr   	Exceptionr#    r   r   <module>r(      s2    .c .c .$Y 8C= r   