Skip to content

Commit

Permalink
test sample with Batch and sage with concat
Browse files Browse the repository at this point in the history
  • Loading branch information
xumwen committed Mar 30, 2020
1 parent e97ef56 commit 3f147fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ def __init__(self, in_channels, out_channels, gcn_type, gcn_partition=None):
else:
if gcn_type == 'gat':
self.adj_available = False
if gcn_type in ['normal', 'cheb', 'graph']:
if gcn_type in ['normal', 'cheb']:
self.batch_training = True
self.kwargs['node_dim'] = 1
if gcn_type == 'cheb':
self.kwargs['K'] = 3
if gcn_type == 'sage':
self.kwargs['concat'] = True

GCNCell = {'normal':PyG.GCNConv,
'cheb':PyG.ChebConv,
Expand Down

0 comments on commit 3f147fe

Please sign in to comment.