279a9b63c77b6748dfb8ebdd0137974ca1fee442,model/nn_utils.py,MLP,forward,#MLP#Any#,202
Before Change
def forward(self, x):
hidden = self.hidden_activation(self.hidden(x))
output = self.activation(self.output(hidden))
return output
After Change
def forward(self, x):
output = x
for layer, activation, dropout in zip(self.linear_layers, self.activations, self.dropout):
output = dropout(activation(layer(output)))
return output
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pcyin/tranX
Commit Name: 279a9b63c77b6748dfb8ebdd0137974ca1fee442
Time: 2018-11-12
Author: pcyin@cs.cmu.edu
File Name: model/nn_utils.py
Class Name: MLP
Method Name: forward
Project Name: lingpy/lingpy
Commit Name: 875a33806acea37f602d0ad20fb77cd42432bbb6
Time: 2013-11-08
Author: bambooforest@gmail.com
File Name: scripts/tokenize/tokenize_pad.py
Class Name:
Method Name:
Project Name: lingpy/lingpy
Commit Name: 916c5ce3345c1e8aca35df47bc0838e1e3a9a2a0
Time: 2014-12-12
Author: xrotwang@googlemail.com
File Name: lingpy/tests/basic/test_wordlist.py
Class Name: TestWordlist
Method Name: test_output