o
    ¬i eö  ã                   @   s$   d Z ddlZddlmZ dd„ ZdS )z#Functions for dealing with metrics.é    N)Úapi_pb2c                 C   sD   t | tƒsJ ‚t |tjƒsJ ‚tj tj | |j¡¡}|j	}||fS )zÁReturns a (run,tag) tuple storing the evaluations of the specified
    metric.

    Args:
      session_name: str.
      metric_name: MetricName protobuffer.
    Returns: (run, tag) tuple.
    )
Ú
isinstanceÚstrr   Ú
MetricNameÚosÚpathÚnormpathÚjoinÚgroupÚtag)Úsession_nameÚmetric_nameÚrunr   © r   úR/var/www/myenv/lib/python3.10/site-packages/tensorboard/plugins/hparams/metrics.pyÚrun_tag_from_session_and_metric   s
   	r   )Ú__doc__r   Útensorboard.plugins.hparamsr   r   r   r   r   r   Ú<module>   s   