509453992838a524f6442d4e0f07a034390ae1f7,layers/eight_mile/pytorch/layers.py,ConvEncoderStack,__init__,#ConvEncoderStack#Any#Any#Any#Any#Any#Any#,283
Before Change
super().__init__()
first_layer = ConvEncoder(insz, outsz, filtsz, pdrop, activation)
subsequent_layer = ResidualBlock(ConvEncoder(outsz, outsz, filtsz, pdrop, activation))
self.layers = nn.ModuleList([first_layer] + [copy.deepcopy(subsequent_layer) for _ in range(layers - 1)])
self.output_dim = outsz
def forward(self, input_bct: torch.Tensor) -> torch.Tensor:
After Change
dropout = nn.Dropout(pdrop)
if hidden_last:
self.conv = nn.Sequential(BTH2BHT(), conv, act, dropout, BHT2BTH())
else:
self.conv = nn.Sequential(conv, act, dropout)
def forward(self, input: torch.Tensor) -> torch.Tensor:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dpressel/mead-baseline
Commit Name: 509453992838a524f6442d4e0f07a034390ae1f7
Time: 2020-02-13
Author: dpressel@gmail.com
File Name: layers/eight_mile/pytorch/layers.py
Class Name: ConvEncoderStack
Method Name: __init__
Project Name: mortendahl/tf-encrypted
Commit Name: 7272af90d4f5916f61f8bc5660e5605e730bbd78
Time: 2019-07-16
Author: suriyaku@gmail.com
File Name: examples/securenn/network_d.py
Class Name: ModelTrainer
Method Name: build_training_graph
Project Name: mariogeiger/se3cnn
Commit Name: be8e12c7297903f3355c1481397e60a59246f07a
Time: 2019-08-08
Author: geiger.mario@gmail.com
File Name: examples/point/tetris.py
Class Name: SE3Net
Method Name: __init__