050614a9b8528de4f8e453aa42d9265206738eb1,mmdet/models/utils/conv_module.py,ConvModule,__init__,#ConvModule#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,70
Before Change
// build activation layer
if self.with_activation:
// TODO: introduce `act_cfg` and supports more activation layers
if self.activation not in ["relu"]:
raise ValueError("{} is currently not supported.".format(
self.activation))
if self.activation == "relu":
self.activate = nn.ReLU(inplace=inplace)
// Use msra init by default
self.init_weights()
@property
def norm(self):
After Change
// build activation layer
if self.with_activation:
act_cfg_ = act_cfg.copy()
act_cfg_.setdefault("inplace", inplace)
self.activate = build_activation_layer(act_cfg_)
// Use msra init by default
self.init_weights()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: open-mmlab/mmdetection
Commit Name: 050614a9b8528de4f8e453aa42d9265206738eb1
Time: 2020-03-11
Author: xvjiarui0826@gmail.com
File Name: mmdet/models/utils/conv_module.py
Class Name: ConvModule
Method Name: __init__
Project Name: wandb/client
Commit Name: a186e2aa2857d92d42ced706f09a59f73629d391
Time: 2020-08-31
Author: jeff@wandb.com
File Name: wandb/sdk_py27/wandb_init.py
Class Name: _WandbInit
Method Name: setup
Project Name: wandb/client
Commit Name: a186e2aa2857d92d42ced706f09a59f73629d391
Time: 2020-08-31
Author: jeff@wandb.com
File Name: wandb/sdk/wandb_init.py
Class Name: _WandbInit
Method Name: setup