o
    ®Ÿ?eæ
  ã                   @   st   d Z ddlmZ ddlmZ ddlmZ dd„ Zdd„ Zd	d
„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )zPath helpers utility functions.é    )Úfile_io)Ú	constants)Úcompatc                 C   ó   t | ƒ}t |¡ |S )zBReturn variables sub-directory, or create one if it doesn't exist.)Úget_variables_dirr   Úrecursive_create_dir)Ú
export_dirZvariables_dir© r	   úk/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/tensorflow/python/saved_model/path_helpers.pyÚget_or_create_variables_dir   s   
r   c                 C   ó   t  t | ¡t tj¡¡S )z1Return variables sub-directory in the SavedModel.)r   Újoinr   Úas_textr   ZVARIABLES_DIRECTORY©r   r	   r	   r
   r      ó   ÿr   c                 C   s   t  t t| ƒ¡t tj¡¡S )zCReturn the variables path, used as the prefix for checkpoint files.)r   r   r   r   r   r   ZVARIABLES_FILENAMEr   r	   r	   r
   Úget_variables_path$   s   
þr   c                 C   r   )z?Return assets sub-directory, or create one if it doesn't exist.)Úget_assets_dirr   r   )r   Zassets_destination_dirr	   r	   r
   Úget_or_create_assets_dir+   ó   
r   c                 C   r   )z1Return path to asset directory in the SavedModel.)r   r   r   r   r   ZASSETS_DIRECTORYr   r	   r	   r
   r   4   r   r   c                 C   r   )zGReturns path to the debug sub-directory, creating if it does not exist.)Úget_debug_dirr   r   )r   Z	debug_dirr	   r	   r
   Úget_or_create_debug_dir:   r   r   c                 C   ó    t  t t | ¡¡t tj¡¡S ©N)r   r   r   Úas_bytesÚpath_to_strr   ZSAVED_MODEL_FILENAME_PBTXTr   r	   r	   r
   Úget_saved_model_pbtxt_pathC   ó   
þr   c                 C   r   r   )r   r   r   r   r   r   ZSAVED_MODEL_FILENAME_PBr   r	   r	   r
   Úget_saved_model_pb_pathI   r   r   c                 C   r   )z:Returns path to the debug sub-directory in the SavedModel.)r   r   r   r   r   ZDEBUG_DIRECTORYr   r	   r	   r
   r   O   r   r   N)Ú__doc__Ztensorflow.python.lib.ior   Ztensorflow.python.saved_modelr   Ztensorflow.python.utilr   r   r   r   r   r   r   r   r   r   r	   r	   r	   r
   Ú<module>   s   		