§
    9P„jã  ã                   ó.   — d Z ddlZddlZddlZd„ Zd„ ZdS )zETensorBoard is a webapp for understanding TensorFlow runs and graphs.é    Nc                 ó   ‡ — ˆ fd„}|S )a!  Decorator to define a function that lazily loads the module 'name'.

    This can be used to defer importing troublesome dependencies - e.g. ones that
    are large and infrequently used, or that cause a dependency cycle -
    until they are actually used.

    Args:
      name: the fully-qualified name of the module; typically the last segment
        of 'name' matches the name of the decorated function

    Returns:
      Decorator function that produces a lazy-loading module 'name' backed by the
      underlying decorated function.
    c                 ó–   •‡ ‡— t           ˆ ˆˆfd„¦   «         Šd‰_        d‰_         G ˆfd„dt          j        ¦  «        } |‰¦  «        S )Nc                 óÒ   •— ‰j         rt          d‰z  ¦  «        ‚d‰_         	  ‰¦   «         }d‰_         n# d‰_         w xY w| j                             |j        ¦  «         d‰_        |S )Nz,Circular import when resolving LazyModule %rTF)ÚloadingÚImportErrorÚ__dict__ÚupdateÚloaded)ÚselfÚmoduleÚload_fnÚ	load_onceÚnames     €€€úU/root/disk_3tb/conda_envs/Huy-visual/lib/python3.11/site-packages/tensorboard/lazy.pyr   z-lazy_load.<locals>.wrapper.<locals>.load_once*   s†   ø€ àÔ ð Ý!ØBÀTÑIñô ð ð !%ˆIÔð*Ø ˜™œ�à$)�	Ô!Ð!ø E�	Ô!Ð)Ð)Ð)Ð)ØŒM× Ò  ¤Ñ1Ô1Ð1Ø#ˆIÔØˆMs   £
5 µ	>Fc                   ó.   •— e Zd Zˆ fd„Zˆ fd„Zˆ fd„ZdS )ú.lazy_load.<locals>.wrapper.<locals>.LazyModulec                 ó6   •— t           ‰| ¦  «        |¦  «        S ©N)Úgetattr)r   Ú	attr_namer   s     €r   Ú__getattr__z:lazy_load.<locals>.wrapper.<locals>.LazyModule.__getattr__@   s   ø€ Ý˜y˜y¨™œ°	Ñ:Ô:Ð:ó    c                 ó4   •— t           ‰| ¦  «        ¦  «        S r   )Údir©r   r   s    €r   Ú__dir__z6lazy_load.<locals>.wrapper.<locals>.LazyModule.__dir__C   s   ø€ Ý˜9˜9 T™?œ?Ñ+Ô+Ð+r   c                 óB   •— ‰j         rd ‰| ¦  «        z  S d| j        z  S )Nz<%r via LazyModule (loaded)>z+<module %r via LazyModule (not yet loaded)>)r
   Ú__name__r   s    €r   Ú__repr__z7lazy_load.<locals>.wrapper.<locals>.LazyModule.__repr__F   s4   ø€ ØÔ#ð LØ9¸I¸IÀd¹O¼OÑKÐKàAØ”mñ$ðr   N)r   Ú
__module__Ú__qualname__r   r   r   )r   s   €r   Ú
LazyModuler   ?   s`   ø€ € € € € ð;ð ;ð ;ð ;ð ;ð,ð ,ð ,ð ,ð ,ðð ð ð ð ð ð r   r"   )Ú_memoizer   r
   ÚtypesÚ
ModuleType)r   r"   r   r   s   ` @€r   Úwrapperzlazy_load.<locals>.wrapper'   s�   øøø€ õ 
ð	ð 	ð 	ð 	ð 	ð 	ñ 
Œð	ð "ˆ	ÔØ ˆ	Ôð
	ð 	ð 	ð 	ð 	ð 	ð 	�Ô)ñ 	ô 	ð 	ð ˆz˜$ÑÔÐr   © )r   r&   s   ` r   Ú	lazy_loadr(      s$   ø€ ð ' ð ' ð ' ð ' ð ' ðR €Nr   c                 ó˜   ‡ ‡‡‡— t          ¦   «         Ši Št          j        ¦   «         Št          j        ‰ ¦  «        ˆˆ ˆˆfd„¦   «         }|S )zKMemoizing decorator for f, which must have exactly 1 hashable
    argument.c                 óÄ   •— ‰                      | ‰¦  «        ‰u r@‰5  ‰                      | ‰¦  «        ‰u r ‰| ¦  «        ‰| <   d d d ¦  «         n# 1 swxY w Y   ‰|          S r   )Úget)ÚargÚcacheÚfÚlockÚnothings    €€€€r   r&   z_memoize.<locals>.wrapper\   s­   ø€ à�9Š9�S˜'Ñ"Ô" gÐ-Ð-Øð (ð (Ø—9’9˜S 'Ñ*Ô*¨gÐ5Ð5Ø!"  3¡¤�E˜#‘Jð(ð (ð (ñ (ô (ð (ð (ð (ð (ð (ð (øøøð (ð (ð (ð (ð �SŒzÐs   œ'AÁAÁA)ÚobjectÚ	threadingÚRLockÚ	functoolsÚwraps)r.   r&   r-   r/   r0   s   ` @@@r   r#   r#   S   si   øøøø€ õ ‰hŒh€GØ€Eõ Œ?ÑÔ€Då„_�QÑÔðð ð ð ð ð ð ñ Ôðð €Nr   )Ú__doc__r4   r2   r$   r(   r#   r'   r   r   ú<module>r7      sZ   ðð LÐ Kð Ð Ð Ð Ø Ð Ð Ð Ø €€€ð9ð 9ð 9ðxð ð ð ð r   