3861825719b8e6ef042799cdb7861a72e11eb3bb,pytorch/pytorchcv/models/others/oth_resattnet4.py,AttentionModule_stage1,__init__,#AttentionModule_stage1#Any#Any#,443
Before Change
down_seq.add_module("down3", nn.Sequential(
nn.MaxPool2d(kernel_size=3, stride=2, padding=1),
nn.Sequential(
ResBlock(in_channels, out_channels),
ResBlock(in_channels, out_channels)
)
))
After Change
down_seq = nn.Sequential()
up_seq = nn.Sequential()
skip_seq = nn.Sequential()
for i in range(hourglass_depth):
down_seq.add_module("down{}".format(i + 1), nn.Sequential(
nn.MaxPool2d(kernel_size=3, stride=2, padding=1),
ResBlock(in_channels, out_channels)
))
up_seq.add_module("up{}".format(i + 1), nn.Sequential(
ResBlock(in_channels, out_channels),
InterpolationBlock2(scale_factor)))
if i == 0:
skip_seq.add_module("skip1", nn.Sequential(
ResBlock(in_channels, out_channels),
ResBlock(in_channels, out_channels)))
else:
skip_seq.add_module("skip{}".format(i + 1), DoubleSkipBlock(in_channels, out_channels))
self.hg = Hourglass(
down_seq=down_seq,
up_seq=up_seq,
skip_seq=skip_seq,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: osmr/imgclsmob
Commit Name: 3861825719b8e6ef042799cdb7861a72e11eb3bb
Time: 2018-12-03
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/oth_resattnet4.py
Class Name: AttentionModule_stage1
Method Name: __init__
Project Name: explosion/thinc
Commit Name: 5e5497e60925a7923eb2842299aeea8a5e1a96ff
Time: 2017-01-07
Author: honnibal+gh@gmail.com
File Name: thinc/neural/_classes/resnet.py
Class Name: ReLuResBN
Method Name: __init__
Project Name: analysiscenter/batchflow
Commit Name: c15b97458069ea19aa0def4259264ae0c2b32644
Time: 2019-11-19
Author: dimonovez@gmail.com
File Name: batchflow/models/eager_torch/resnet.py
Class Name: ResNet
Method Name: body