
    9j                     *    d e de fdZdede dz  fdZy)	case_namereturnc                     ddl m} ddlm}  |       }| |v r| j	                  dd      }d|  d| S  |d	| 
       |  dS )N   )all_examples    )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        X/media/conek/DATA/Code/OCR/venv/lib/python3.12/site-packages/torch/_export/db/logging.pyexportdb_error_messager      sg    &6>LL !))#s3i[ !MMZO] 	] 	2	
 ,--    eNc                     ddl m}m}m} d}d}|||||di}t	        |       |v r|t	        |          }||S t        | |d      S y)ze
    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"      sk     LK+% 	(&4K
 Aw+Q(	$$q)T**r   )strr   	Exceptionr"    r   r   <module>r&      s/   .c .c .$Y 3: r   