
    `is                     >    d dl mZ dedefdZdedee         fdZdS )    )Optional	case_namereturnc                     ddl m} ddlm}  |            }| |v r|                     dd          }d|  d| S  |d	| 
           |  dS )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/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/torch/_export/db/logging.pyexportdb_error_messager      s    &&&&&&666666<>>LL  !))#s33]i ] ]MZ] ] 	] 	2	
 	
 	
 	
 ----    ec                     ddl m}m}m} d}d}|||||di}t	          |           |v r*|t	          |                    }||S t          | |d          S dS )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#      s     LKKKKKKKKK+% 	(&4K
 Aww+Q(	$$q)T***4r   N)typingr   strr   	Exceptionr#    r   r   <module>r(      si         .c .c . . . .$Y 8C=      r   