
    1VhH                         d dl Z d Zy)    Nc                     | j                  d      sy| j                  }t        j                  |       xr t        j                  |       S )a  Returns whether a protobuf Value will be serializable by MessageToJson.

    The json_format documentation states that "attempting to serialize NaN or
    Infinity results in error."

    https://protobuf.dev/reference/protobuf/google.protobuf/#value

    Args:
      value: A value of type protobuf.Value.

    Returns:
      True if the Value should be serializable without error by MessageToJson.
      False, otherwise.
    number_valueT)HasFieldr   mathisnanisinf)valuer   s     ^/home/dcms/DCMS/lib/python3.12/site-packages/tensorboard/plugins/hparams/json_format_compat.pyis_serializable_valuer      sA     >>.)%%Lzz,''H

<0H,HH    )r   r    r   r
   <module>r      s     Ir   