Ë
    BÆVh   ã                   ó  — d Z ddlZddlmZmZ ej
                  j                  e«      d   j                  ej
                  j                  dd«      «      sddl
mZ nddlmZ  G d„ dej                  «      Z G d	„ d
e«      Zy)zPython TFLite metrics helper.é    N)ÚOptionalÚTextÚtflite_runtimeÚmetrics_portable)Úmetrics_interfacec                   ó`   — e Zd ZdZ	 	 ddee   dee   ddfd„Zd„ Zd„ Zd	„ Z	d
„ Z
d„ Zd„ Zd„ Zy)ÚTFLiteMetricszTFLite metrics helper.NÚ
model_hashÚ
model_pathÚreturnc                  ó   — y ©N© )Úselfr
   r   s      úV/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/lite/python/metrics/metrics.pyÚ__init__zTFLiteMetrics.__init__!   s   € ð 	ó    c                  ó   — y r   r   ©r   s    r   Ú"increase_counter_debugger_creationz0TFLiteMetrics.increase_counter_debugger_creation&   ó   € Ør   c                  ó   — y r   r   r   s    r   Ú%increase_counter_interpreter_creationz3TFLiteMetrics.increase_counter_interpreter_creation)   r   r   c                  ó   — y r   r   r   s    r   Ú"increase_counter_converter_attemptz0TFLiteMetrics.increase_counter_converter_attempt,   r   r   c                  ó   — y r   r   r   s    r   Ú"increase_counter_converter_successz0TFLiteMetrics.increase_counter_converter_success/   r   r   c                  ó   — y r   r   )r   ÚnameÚvalues      r   Úset_converter_paramz!TFLiteMetrics.set_converter_param2   r   r   c                  ó   — y r   r   )r   Ú
error_datas     r   Úset_converter_errorz!TFLiteMetrics.set_converter_error5   r   r   c                  ó   — y r   r   )r   r    s     r   Úset_converter_latencyz#TFLiteMetrics.set_converter_latency8   r   r   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r   r!   r$   r&   r   r   r   r	   r	      sU   „ Ùð -1Ø,0ñ	Ø# D™>ð	à# D™>ð	à59ó	ò
	ò	ò	ò	ò	ò	ó	r   r	   c                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚTFLiteConverterMetricsz7Similar to TFLiteMetrics but specialized for converter.c                  ó   — y r   r   r   s    r   Ú__del__zTFLiteConverterMetrics.__del__?   r   r   c                  ó   — y r   r   r   s    r   Úset_export_requiredz*TFLiteConverterMetrics.set_export_requiredB   r   r   c                  ó   — y r   r   r   s    r   Úexport_metricsz%TFLiteConverterMetrics.export_metricsE   r   r   N)r'   r(   r)   r*   r.   r0   r2   r   r   r   r,   r,   <   s   „ Ù?ò	ò	ó	r   r,   )r*   ÚosÚtypingr   r   ÚpathÚsplitextÚ__file__ÚendswithÚjoinÚtensorflow.lite.python.metricsr   r   ÚTFLiteMetricsInterfacer	   r,   r   r   r   ú<module>r<      sq   ðñ $Û 	ß !ð 
‡ww×Ñ˜Ó! !Ñ$×-Ñ-Ø‡GG‡LLÐ!Ð#5Ó6ô8ö ?õ /ô	Ð%×<Ñ<ô 	ô<
	˜]õ 
	r   