/usr/local/lib64/python3.6/site-packages/torch/nn/modules/__pycache__
NameSizeModeActions
activation.cpython-36.pyc476350644editdlrm
adaptive.cpython-36.pyc97250644editdlrm
batchnorm.cpython-36.pyc310390644editdlrm
channelshuffle.cpython-36.pyc19010644editdlrm
container.cpython-36.pyc279700644editdlrm
conv.cpython-36.pyc577890644editdlrm
distance.cpython-36.pyc36840644editdlrm
dropout.cpython-36.pyc103100644editdlrm
flatten.cpython-36.pyc58130644editdlrm
fold.cpython-36.pyc128070644editdlrm
instancenorm.cpython-36.pyc188080644editdlrm
lazy.cpython-36.pyc116900644editdlrm
linear.cpython-36.pyc101880644editdlrm
loss.cpython-36.pyc914650644editdlrm
module.cpython-36.pyc665300644editdlrm
normalization.cpython-36.pyc113600644editdlrm
padding.cpython-36.pyc222170644editdlrm
pixelshuffle.cpython-36.pyc43980644editdlrm
pooling.cpython-36.pyc532030644editdlrm
rnn.cpython-36.pyc446530644editdlrm
sparse.cpython-36.pyc209560644editdlrm
transformer.cpython-36.pyc207370644editdlrm
upsampling.cpython-36.pyc107800644editdlrm
utils.cpython-36.pyc25280644editdlrm
_functions.cpython-36.pyc54410644editdlrm
__init__.cpython-36.pyc52360644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/nn/modules/__pycache__/channelshuffle.cpython-36.pyc (1901B)
3 ûEgã@s8ddlmZddlmZddlmZGdd„deƒZdS) é)ÚModuleé)Ú functionalé)ÚTensorcsReZdZUdZdgZeeddœ‡fdd„ Zeedœdd „Z e d œd d „Z ‡Z S) ÚChannelShufflea/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:: >>> 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]], ]] ÚgroupsN)rÚreturncstt|ƒjƒ||_dS)N)ÚsuperrÚ__init__r)Úselfr)Ú __class__©úK/usr/local/lib64/python3.6/site-packages/torch/nn/modules/channelshuffle.pyr ,szChannelShuffle.__init__)Úinputr cCstj||jƒS)N)ÚFZchannel_shuffler)r rrrrÚforward0szChannelShuffle.forward)r cCs dj|jƒS)Nz groups={})Úformatr)r rrrÚ extra_repr3szChannelShuffle.extra_repr) Ú__name__Ú __module__Ú __qualname__Ú__doc__Z __constants__Úintrr rrÚstrrÚ __classcell__rr)r rrs !rN)ÚmodulerÚrrZtorchrrrrrrÚs