
    Pi                     :    d dl Z d dlZdej        j        ddfdZdS )    Nmodelreturnc                     |                                  D ]S}t          |t          j        j                  r2|j        dk    r't          j        d|j         d| d           d|_        Td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   modules     r/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/torchtune/training/_model_util.pydisable_dropoutr      s|     --//  feh.// 	FHMMM[FH[[[[[   FH     )r   r   r	   Moduler    r   r   <module>r      sI     58? t      r   