e1139033f3fc865faade3403b378f84089b4f474,neural_style/transformer_net.py,ResidualBlock,forward,#ResidualBlock#,66

Before Change



    def forward(self, x):
        residual = x
        out = self.conv1(x)
        out = self.in1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out += residual
        return out

After Change



    def forward(self, x):
        residual = x
        out = self.relu(self.bn1(self.conv1(x)))
        out = self.bn2(self.conv2(out))
        out = out + residual
        return out
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: abhiskk/fast-neural-style
Commit Name: e1139033f3fc865faade3403b378f84089b4f474
Time: 2017-04-03
Author: abhishekkadiyan@gmail.com
File Name: neural_style/transformer_net.py
Class Name: ResidualBlock
Method Name: forward


Project Name: rusty1s/pytorch_geometric
Commit Name: a7fd67bd27f83cf7c9438626bb642e1928dbe814
Time: 2020-09-23
Author: matthias.fey@tu-dortmund.de
File Name: examples/ppi.py
Class Name: Net
Method Name: forward


Project Name: pytorch/examples
Commit Name: 0634306968ed7f28e2b11b69d3b2df348b8ec53c
Time: 2019-11-11
Author: fedor.shabashev@gmail.com
File Name: mnist/main.py
Class Name: Net
Method Name: forward


Project Name: pytorch/examples
Commit Name: d8dd8caeec861648813ae7b1112b3faf7f85a326
Time: 2018-12-12
Author: 33121121+surgan12@users.noreply.github.com
File Name: mnist/main.py
Class Name: Net
Method Name: forward