o
    ̳i                     @   s*   d dl Z d dlZdejjddfddZdS )    Nmodelreturnc                 C   sJ   |   D ]}t|tjjr"|jdkr"td|j d| d d|_qdS )z
    Disables dropout layers in the given model.

    Args:
        model (torch.nn.Module): The model in which dropout layers should be disabled.
    r   zFound Dropout with value z in module z. Setting to zero.N)modules
isinstancetorchnnDropoutpwarningswarn)r   module r   R/home/ubuntu/.local/lib/python3.10/site-packages/torchtune/training/_model_util.pydisable_dropout   s   r   )r
   r   r   Moduler   r   r   r   r   <module>   s   