
    2Vh                         d dl Z  G d d      Z ed      Z edd      Z ed      Z ed      Z ed	      Z ed
d      Z ed      Z ed      Z	 ed      Z
y)    Nc                   6    e Zd ZddZed        Zd Zd Zd Zy)
LazyModuleNc                     || _         |xs || _        |xs d| j                    d| j                   d| _        d | _        d | _        y )NzThis requires the z- module. You can install it via `pip install `)namepip_nameimport_error_msgmodule
_available)selfr   r   r	   s       L/home/dcms/DCMS/lib/python3.12/site-packages/keras/src/utils/module_utils.py__init__zLazyModule.__init__   sV    	 (D 0 !
  ,337==/D 	     c                     | j                   $	 | j                          d| _         | j                   S | j                   S # t        $ r d| _         Y | j                   S w xY w)NTF)r   
initializeImportErrorr   s    r   	availablezLazyModule.available   sY    ??"(!"& t  ("'(s   = AAc                     	 t        j                  | j                        | _        y # t        $ r t	        | j
                        w xY w)N)	importlibimport_moduler   r
   r   r	   r   s    r   r   zLazyModule.initialize   s=    	5#11$))<DK 	5d3344	5s	   $' Ac                 |    |dk(  rt         | j                  | j                          t        | j                  |      S )N_api_export_path)AttributeErrorr
   r   getattr)r   r   s     r   __getattr__zLazyModule.__getattr__   s6    %%  ;;OOt{{D))r   c                 "    d| j                    dS )NzLazyModule())r   r   s    r   __repr__zLazyModule.__repr__&   s    TYYKq))r   )NN)	__name__
__module____qualname__r   propertyr   r   r   r    r   r   r   r      s*      5**r   r   
tensorflowztensorflow.io.gfile)r   tensorflow_ioscipyjax	torch_xlaaw  This requires the torch_xla module. You can install it via `pip install torch-xla`. Additionally, you may need to update LD_LIBRARY_PATH if necessary. Torch XLA builds a shared library, _XLAC.so, which needs to link to the version of Python it was built with. Use the following command to update LD_LIBRARY_PATH: `export LD_LIBRARY_PATH=<path to Python>/lib:$LD_LIBRARY_PATH`)r	   optreetreetf2onnx)r   r   r%   gfiler&   r'   r(   r)   r*   dmtreer,   r$   r   r   <module>r/      s}    #* #*L %
(<@?+7	I
	 
H		F	
Y
r   