I tried to implement GCN to heterogenous node classification, the network i defined is below:
self.convs = torch.nn.ModuleList()
for _ in range(2):
conv = HeteroConv({
edge_type: GCNConv((-1, -1), hidden_dim)
for edge_type in metadata[1]
})
self.convs.append(conv)
self.lin = Linear(hidden_dim, num_classes)
However, i got the error below:
File "/home/anaconda3/envs/graph/lib/python3.8/site-packages/torch_geometric/nn/dense/linear.py", line 95, in __init__
if in_channels > 0:
TypeError: '>' not supported between instances of 'tuple' and 'int'
I tried to implement GCN to heterogenous node classification, the network i defined is below:
However, i got the error below: