378c264561d232dfe00d934409b64ab626a4915a,examples/pytorch/gcn/gcn.py,NodeApplyModule,forward,#NodeApplyModule#Any#,29
Before Change
self.activation = activation
def forward(self, nodes):
h = self.linear(nodes.data["h"])
if self.activation:
h = self.activation(h)
return {"h" : h}
After Change
def forward(self, nodes):
// normalization by square root of dst degree
h = nodes.data["h"] * nodes.data["norm"]
h = self.linear(h)
if self.activation:
h = self.activation(h)
return {"h" : h}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dmlc/dgl
Commit Name: 378c264561d232dfe00d934409b64ab626a4915a
Time: 2018-12-05
Author: ly979@nyu.edu
File Name: examples/pytorch/gcn/gcn.py
Class Name: NodeApplyModule
Method Name: forward
Project Name: dmlc/gluon-cv
Commit Name: cf767a1297d67caf41577508aacc7cbc24ae8f14
Time: 2020-09-16
Author: 43100519+xdeng7@users.noreply.github.com
File Name: scripts/gan/stylegan/modules.py
Class Name: EqualLinear
Method Name: hybrid_forward
Project Name: dmlc/dgl
Commit Name: 378c264561d232dfe00d934409b64ab626a4915a
Time: 2018-12-05
Author: ly979@nyu.edu
File Name: examples/pytorch/gcn/gcn_spmv.py
Class Name: NodeApplyModule
Method Name: forward