
    BVh
                     b    d Z ddlmZ ddlmZ ddlmZ d Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zy)zPath helpers utility functions.    )file_io)	constants)compatc                 F    t        |       }t        j                  |       |S )zBReturn variables sub-directory, or create one if it doesn't exist.)get_variables_dirr   recursive_create_dir)
export_dirvariables_dirs     Z/home/dcms/DCMS/lib/python3.12/site-packages/tensorflow/python/saved_model/path_helpers.pyget_or_create_variables_dirr      s     #J/-	}-	    c                     t        j                  t        j                  |       t        j                  t        j
                              S )z1Return variables sub-directory in the SavedModel.)r   joinr   as_textr   VARIABLES_DIRECTORYr	   s    r   r   r      s2    	nnZ &..1N1N"O
Q Qr   c                     t        j                  t        j                  t	        |             t        j                  t
        j                              S )zCReturn the variables path, used as the prefix for checkpoint files.)r   r   r   r   r   r   VARIABLES_FILENAMEr   s    r   get_variables_pathr   $   s7    	nn&z23nnY112
4 4r   c                 F    t        |       }t        j                  |       |S )z?Return assets sub-directory, or create one if it doesn't exist.)get_assets_dirr   r   )r	   assets_destination_dirs     r   get_or_create_assets_dirr   +   s"    )*5	56	r   c                     t        j                  t        j                  |       t        j                  t        j
                              S )z1Return path to asset directory in the SavedModel.)r   r   r   r   r   ASSETS_DIRECTORYr   s    r   r   r   4   s2    	nnZ &..1K1K"L
N Nr   c                 F    t        |       }t        j                  |       |S )zGReturns path to the debug sub-directory, creating if it does not exist.)get_debug_dirr   r   )r	   	debug_dirs     r   get_or_create_debug_dirr   :   s     J')	y)	r   c                     t        j                  t        j                  t        j                  |             t        j                  t
        j                              S N)r   r   r   as_bytespath_to_strr   SAVED_MODEL_FILENAME_PBTXTr   s    r   get_saved_model_pbtxt_pathr%   C   s<    	oof((45ooi::;
= =r   c                     t        j                  t        j                  t        j                  |             t        j                  t
        j                              S r!   )r   r   r   r"   r#   r   SAVED_MODEL_FILENAME_PBr   s    r   get_saved_model_pb_pathr(   I   s<    	oof((45ooi778
: :r   c                     t        j                  t        j                  |       t        j                  t        j
                              S )z:Returns path to the debug sub-directory in the SavedModel.)r   r   r   r   r   DEBUG_DIRECTORYr   s    r   r   r   O   s2    	nnZ &..1J1J"K
M Mr   N)__doc__tensorflow.python.lib.ior   tensorflow.python.saved_modelr   tensorflow.python.utilr   r   r   r   r   r   r   r%   r(   r    r   r   <module>r0      sC     & , 3 )Q4 N=:Mr   