o
    2h                     @   sj   d dl Z G dd dZedZedddZedZedZed	Zed
ddZedZedZ	edZ
dS )    Nc                   @   s:   e Zd ZdddZedd Zdd Zdd	 Zd
d ZdS )
LazyModuleNc                 C   s<   || _ |p|| _|pd| j  d| j d| _d | _d | _d S )NzThis requires the z- module. You can install it via `pip install `)namepip_nameimport_error_msgmodule
_available)selfr   r   r    r
   W/var/www/html/chatgem/venv/lib/python3.10/site-packages/keras/src/utils/module_utils.py__init__   s   


zLazyModule.__init__c                 C   sD   | j d u rz|   d| _ W | j S  ty   d| _ Y | j S w | j S )NTF)r   
initializeImportErrorr	   r
   r
   r   	available   s   
zLazyModule.availablec                 C   s.   z
t | j| _W d S  ty   t| jw )N)	importlibimport_moduler   r   r   r   r   r
   r
   r   r      s
   
zLazyModule.initializec                 C   s*   |dkrt | jd u r|   t| j|S )N_api_export_path)AttributeErrorr   r   getattr)r	   r   r
   r
   r   __getattr__   s
   
zLazyModule.__getattr__c                 C   s   d| j  dS )NzLazyModule())r   r   r
   r
   r   __repr__&   s   zLazyModule.__repr__)NN)	__name__
__module____qualname__r   propertyr   r   r   r   r
   r
   r
   r   r      s    


	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
   r   <module>   s    &