
    sh&                     P    S SK r S/r " S S\ R                  R                  5      rg)    NDropoutc                   H    \ rS rSrSrS rS r\S	S j5       r\S 5       r	Sr
g)
r      aH  This is the quantized equivalent of :class:`~torch.nn.Dropout`.
    And this is a placeholder to enable models where fp32 tensors
    had dropout to work with quantized tensors in train and eval mode.

Args:
    p: probability of an element to be zeroed
    inplace: can optionally do the operation in-place. Default: ``False``
c                     U$ N )selfinputs     y/Users/tiagomarins/Projetos/claudeai/copy_bank/venv/lib/python3.13/site-packages/torch/ao/nn/quantized/modules/dropout.pyforwardDropout.forward   s        c                     g)NQuantizedDropoutr   )r	   s    r   	_get_nameDropout._get_name   s    !r   c                 <    U " UR                   UR                  5      $ r   pinplace)clsmoduse_precomputed_fake_quants      r   
from_floatDropout.from_float       355#++&&r   c                 <    U " UR                   UR                  5      $ r   r   )r   r   scale
zero_points       r   from_referenceDropout.from_reference   r   r   r   N)F)__name__
__module____qualname____firstlineno____doc__r   r   classmethodr   r    __static_attributes__r   r   r   r   r      s9    " ' ' ' 'r   )torch__all__nnr   r   r   r   <module>r,      s'     +'ehh 'r   