o
    ϯiO                     @   s8   d dl mZ dejddfddZdejddfddZdS )    Nmodulereturnc                 C   s4   t jj| jdd | jdurt j| jd dS dS )z
    Initialize `module.weight` using the "XavierFill" implemented in Caffe2.
    Also initializes `module.bias` to 0.

    Args:
        module (torch.nn.Module): module to initialize.
       )aNr   )nninitkaiming_uniform_weightbias	constant_r    r   I/home/ubuntu/.local/lib/python3.10/site-packages/fvcore/nn/weight_init.pyc2_xavier_fill   s   
r   c                 C   s6   t jj| jddd | jdurt j| jd dS dS )z
    Initialize `module.weight` using the "MSRAFill" implemented in Caffe2.
    Also initializes `module.bias` to 0.

    Args:
        module (torch.nn.Module): module to initialize.
    fan_outrelu)modenonlinearityNr   )r   r   kaiming_normal_r	   r
   r   r   r   r   r   c2_msra_fill   s   	
r   )torch.nnr   Moduler   r   r   r   r   r   <module>   s   