5f3cddb62a332dc7d98dfacebf94d10bf7874600,arch/example.py,CNN,__init__,#CNN#,22
Before Change
]
common_block_params = {"size": 4, "n_radial": 1, "stride": 2, "batch_norm_before_conv": False}
block_params = [
{"non_linearities": True},
{"non_linearities": True},
{"non_linearities": False},
]
assert len(block_params) + 1 == len(features)
After Change
blocks = [HighwayBlock(features[i], features[i + 1], **common_block_params, **block_params[i]) for i in range(len(block_params))]
self.sequence = torch.nn.Sequential(
*blocks,
AvgSpacial(),
torch.nn.Linear(20, 50),
torch.nn.ReLU(),
torch.nn.Linear(50, 2),
)
def forward(self, inp): // pylint: disable=W
"""
:param inp: [batch, features, x, y, z]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: mariogeiger/se3cnn
Commit Name: 5f3cddb62a332dc7d98dfacebf94d10bf7874600
Time: 2018-01-17
Author: geiger.mario@gmail.com
File Name: arch/example.py
Class Name: CNN
Method Name: __init__
Project Name: HyperGAN/HyperGAN
Commit Name: 9f526d266d23a6c887966bbd550555bd188926eb
Time: 2020-02-09
Author: martyn@255bits.com
File Name: hypergan/generators/resizable_generator.py
Class Name: ResizableGenerator
Method Name: create
Project Name: zhanghang1989/PyTorch-Encoding
Commit Name: 8f8fbb9f6543a4ccaad53923d33647e7138d95ea
Time: 2017-10-15
Author: zhang.hang@rutgers.edu
File Name: encoding/parallel.py
Class Name: ModelDataParallel
Method Name: __init__
Project Name: mariogeiger/se3cnn
Commit Name: 5f3cddb62a332dc7d98dfacebf94d10bf7874600
Time: 2018-01-17
Author: geiger.mario@gmail.com
File Name: arch/example.py
Class Name: CNN
Method Name: __init__