a
    þdü  ã                   @   s¸   d dl Z d dlmZ ddœdd„ZG dd„ dƒZG dd	„ d	ƒZG d
d„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZ	G dd„ dƒZ
G dd„ dƒZG dd„ dƒZG dd„ dƒZeƒ  dS )é    N)ÚAny)Úreturnc                  C   sJ   t jt } | t jd< | t jd< | t jd< | t jd< | t jd< | t jd< d S )Nz#pytorch_lightning.profiler.advancedzpytorch_lightning.profiler.basez#pytorch_lightning.profiler.profilerz"pytorch_lightning.profiler.pytorchz!pytorch_lightning.profiler.simplezpytorch_lightning.profiler.xla)ÚsysÚmodulesÚ__name__)Úself© r   ún/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/pytorch_lightning/_graveyard/profiler.pyÚ_patch_sys_modules   s    





r
   c                   @   s   e Zd Zeeddœdd„ZdS )ÚAbstractProfilerN©Ú_Ú__r   c                 O   s   t dƒ‚d S )Nz¤`pytorch_lightning.profiler.base.AbstractProfiler` was deprecated in v1.6 and is no longer supported as of v1.9. Use `pytorch_lightning.profilers.Profiler` instead.)ÚNotImplementedError©r   r   r   r   r   r	   Ú__init__   s    ÿzAbstractProfiler.__init__©r   Ú
__module__Ú__qualname__r   r   r   r   r   r	   r      s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚBaseProfilerNr   c                 O   s   t dƒ‚d S )Nz `pytorch_lightning.profiler.base.BaseProfiler` was deprecated in v1.6 and is no longer supported as of v1.9. Use `pytorch_lightning.profilers.Profiler` instead.©ÚRuntimeErrorr   r   r   r	   r   (   s    ÿzBaseProfiler.__init__r   r   r   r   r	   r   &   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚAdvancedProfilerNr   c                 O   s   t dƒ‚d S )Nzµ`pytorch_lightning.profiler.advanced.AdvancedProfiler` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.AdvancedProfiler` instead.r   r   r   r   r	   r   1   s    ÿzAdvancedProfiler.__init__r   r   r   r   r	   r   /   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚPassThroughProfilerNr   c                 O   s   t dƒ‚d S )Nz·`pytorch_lightning.profiler.base.PassThroughProfiler` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.PassThroughProfiler` instead.r   r   r   r   r	   r   :   s    ÿzPassThroughProfiler.__init__r   r   r   r   r	   r   8   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚProfilerNr   c                 O   s   t dƒ‚d S )Nz¥`pytorch_lightning.profiler.profiler.Profiler` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.Profiler` instead.r   r   r   r   r	   r   C   s    ÿzProfiler.__init__r   r   r   r   r	   r   A   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚPyTorchProfilerNr   c                 O   s   t dƒ‚d S )Nz²`pytorch_lightning.profiler.pytorch.PyTorchProfiler` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.PyTorchProfiler` instead.r   r   r   r   r	   r   L   s    ÿzPyTorchProfiler.__init__r   r   r   r   r	   r   J   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚRegisterRecordFunctionNr   c                 O   s   t dƒ‚d S )NzÈ`pytorch_lightning.profiler.pytorch.RegisterRecordFunction` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.pytorch.RegisterRecordFunction` instead.r   r   r   r   r	   r   U   s    ÿzRegisterRecordFunction.__init__r   r   r   r   r	   r   S   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚScheduleWrapperNr   c                 O   s   t dƒ‚d S )Nzº`pytorch_lightning.profiler.pytorch.ScheduleWrapper` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.pytorch.ScheduleWrapper` instead.r   r   r   r   r	   r   ^   s    ÿzScheduleWrapper.__init__r   r   r   r   r	   r   \   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚSimpleProfilerNr   c                 O   s   t dƒ‚d S )Nz¯`pytorch_lightning.profiler.simple.SimpleProfiler` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.SimpleProfiler` instead.r   r   r   r   r	   r   g   s    ÿzSimpleProfiler.__init__r   r   r   r   r	   r   e   s   r   c                   @   s   e Zd Zeeddœdd„ZdS )ÚXLAProfilerNr   c                 O   s   t dƒ‚d S )Nz¦`pytorch_lightning.profiler.xla.XLAProfiler` was deprecated in v1.7.0 and is not longer supported as of v1.9.0. Use `pytorch_lightning.profilers.XLAProfiler` instead.r   r   r   r   r	   r   p   s    ÿzXLAProfiler.__init__r   r   r   r   r	   r   n   s   r   )r   Útypingr   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   Ú<module>   s   										