3bfbab7afd5850b4f21b73dd3184374f47eb1d98,models.py,,create_modules,#Any#Any#Any#,10
Before Change
size = int(mdef["size"])
stride = int(mdef["stride"]) if "stride" in mdef else (int(mdef["stride_y"]), int(mdef["stride_x"]))
pad = (size - 1) // 2 if int(mdef["pad"]) else 0
modules.add_module("Conv2d", nn.Conv2d(in_channels=output_filters[-1],
out_channels=filters,
kernel_size=size,
stride=stride,
padding=pad,
bias=not bn))
if bn:
modules.add_module("BatchNorm2d", nn.BatchNorm2d(filters, momentum=0.1))
if mdef["activation"] == "leaky": // TODO: activation study https://github.com/ultralytics/yolov3/issues/441
modules.add_module("activation", nn.LeakyReLU(0.1, inplace=True))
After Change
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 2
Instances
Project Name: ultralytics/yolov3
Commit Name: 3bfbab7afd5850b4f21b73dd3184374f47eb1d98
Time: 2019-12-09
Author: glenn.jocher@ultralytics.com
File Name: models.py
Class Name:
Method Name: create_modules
Project Name: osmr/imgclsmob
Commit Name: c790ec7ea5053731431409a7a4f8f9563d780425
Time: 2021-02-12
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/others/_sqnet.py
Class Name: FireBlock
Method Name: __init__
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: interactiveaudiolab/nussl
Commit Name: 5dec8de970eb520f6d4e6cc6c7934eb564a42a6c
Time: 2020-03-02
Author: prem@u.northwestern.edu
File Name: nussl/ml/networks/modules.py
Class Name: RecurrentStack
Method Name: __init__
Project Name: reinforceio/tensorforce
Commit Name: 07bcc8f463d5e45a0c3219c74c924e24a0487bd0
Time: 2020-03-30
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/models/tensorforce.py
Class Name: TensorforceModel
Method Name: __init__