
    sgP                         d e fdZd Zy)	case_namec                     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        K/var/www/html/venv/lib/python3.12/site-packages/torch/_export/db/logging.pyexportdb_error_messager      sg    &6>LL !))#s3i[ !MMZO] 	] 	2	
 ,--    c                     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)er   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   N)strr   r!    r   r   <module>r$      s   .c .$r   