§
    :zniN  ã                   óL   — d dl mZ ddlmZ ddlmZ dgZ G d„ de¦  «        ZdS )	é   )ÚModuleé   )Ú
functionalé    )ÚTensorÚChannelShufflec                   óZ   ‡ — e Zd ZU dZdgZeed<   deddfˆ fd„Zdedefd„Z	de
fd„Zˆ xZS )	r   am  Divide the channels in a tensor of shape :math:`(*, C , H, W)`
    into g groups and rearrange them as :math:`(*, C \frac g, g, H, W)`,
    while keeping the original tensor shape.

    Args:
        groups (int): number of groups to divide channels in.

    Examples::

        >>> # xdoctest: +IGNORE_WANT("FIXME: incorrect want")
        >>> channel_shuffle = nn.ChannelShuffle(2)
        >>> input = torch.randn(1, 4, 2, 2)
        >>> print(input)
        [[[[1, 2],
           [3, 4]],
          [[5, 6],
           [7, 8]],
          [[9, 10],
           [11, 12]],
          [[13, 14],
           [15, 16]],
         ]]
        >>> output = channel_shuffle(input)
        >>> print(output)
        [[[[1, 2],
           [3, 4]],
          [[9, 10],
           [11, 12]],
          [[5, 6],
           [7, 8]],
          [[13, 14],
           [15, 16]],
         ]]
    ÚgroupsÚreturnNc                 óV   •— t          ¦   «                              ¦   «          || _        d S ©N)ÚsuperÚ__init__r
   )Úselfr
   Ú	__class__s     €ú/var/www/html/cool-property-finder/image-detection-backend/venv/lib/python3.11/site-packages/torch/nn/modules/channelshuffle.pyr   zChannelShuffle.__init__.   s$   ø€ Ý‰Œ×ÒÑÔÐØˆŒˆˆó    Úinputc                 ó6   — t          j        || j        ¦  «        S r   )ÚFÚchannel_shuffler
   )r   r   s     r   ÚforwardzChannelShuffle.forward2   s   € ÝÔ  ¨¬Ñ4Ô4Ð4r   c                 ó   — d| j         › �S )Nzgroups=)r
   )r   s    r   Ú
extra_reprzChannelShuffle.extra_repr5   s   € Ø&˜œÐ&Ð&Ð&r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__constants__ÚintÚ__annotations__r   r   r   Ústrr   Ú__classcell__)r   s   @r   r   r      s§   ø€ € € € € € ð!ð !ðD �J€MØ€K€K�Kð˜sð  tð ð ð ð ð ð ð5˜Vð 5¨ð 5ð 5ð 5ð 5ð'˜Cð 'ð 'ð 'ð 'ð 'ð 'ð 'ð 'r   N)	Úmoduler   Ú r   r   Útorchr   Ú__all__r   © r   r   ú<module>r)      sw   ðØ Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð àÐ
€ð.'ð .'ð .'ð .'ð .'�Vñ .'ô .'ð .'ð .'ð .'r   