Unverified Commit be0bf495 authored by Hongzhi (Steve), Chen's avatar Hongzhi (Steve), Chen Committed by GitHub
Browse files

[Polish] Cleanup unnecessary local variable. (#6524)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-28-63.ap-northeast-1.compute.internal>
parent 419799b8
...@@ -41,8 +41,6 @@ class GCN(nn.Module): ...@@ -41,8 +41,6 @@ class GCN(nn.Module):
self.layers = nn.ModuleList() self.layers = nn.ModuleList()
self.layers.append(dglnn.GraphConv(in_size, hidden_size)) self.layers.append(dglnn.GraphConv(in_size, hidden_size))
self.layers.append(dglnn.GraphConv(hidden_size, out_size)) self.layers.append(dglnn.GraphConv(hidden_size, out_size))
self.hidden_size = hidden_size
self.out_size = out_size
def forward(self, blocks, x): def forward(self, blocks, x):
hidden_x = x hidden_x = x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment