
    1Vh                     "    d Z ddlZddlmZ d Zy)z#Functions for dealing with metrics.    N)api_pb2c                     t        | t              sJ t        |t        j                        sJ t        j
                  j                  | |j                        }|j                  d      r|dd }|j                  }||fS )zReturns a (run,tag) tuple storing the evaluations of the specified
    metric.

    Args:
      session_name: str.
      metric_name: MetricName protobuffer.
    Returns: (run, tag) tuple.
    /N)

isinstancestrr   
MetricNameospathjoingroupendswithtag)session_namemetric_namerunr   s       S/home/dcms/DCMS/lib/python3.12/site-packages/tensorboard/plugins/hparams/metrics.pyrun_tag_from_session_and_metricr      so     lC(((k7#5#5666 '',,|[%6%6
7C
||C#2h
//C8O    )__doc__r
   tensorboard.plugins.hparamsr   r    r   r   <module>r      s    * 
 0r   