babe2e9ace7bf78a46ff2011d95d97a08461cf2a,chainer_chemistry/models/gat.py,GAT,__call__,#GAT#Any#Any#,167
Before Change
if isinstance(adj, Variable):
w_adj = adj.data
else:
w_adj = adj
is_real_node = self.xp.sum(w_adj, axis=(1, 2)) > 0
w_adj = Variable(w_adj, requires_grad=False)
g_list = []
for step in range(self.n_layers):
h = self.update(h, w_adj, step)
if self.concat_hidden:
g = self.readout(h, h0, step, is_real_node)
g_list.append(g)
After Change
if self.concat_hidden:
return functions.concat(g_list, axis=1)
else:
g = self.readout_layers[0](h, h0)
return g
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pfnet-research/chainer-chemistry
Commit Name: babe2e9ace7bf78a46ff2011d95d97a08461cf2a
Time: 2018-12-25
Author: mottodora@gmail.com
File Name: chainer_chemistry/models/gat.py
Class Name: GAT
Method Name: __call__
Project Name: pytorch/examples
Commit Name: 645c7c386e62d2fb1d50f4621c1a52645a13869f
Time: 2018-04-24
Author: soumith@gmail.com
File Name: fast_neural_style/neural_style/neural_style.py
Class Name:
Method Name: stylize
Project Name: OpenNMT/OpenNMT-py
Commit Name: cc80175c2704c0dbbfe908f6b678c84ef1741a56
Time: 2017-03-22
Author: bryan.mccann.is@gmail.com
File Name: onmt/Models.py
Class Name: Encoder
Method Name: forward