Skip to content
Discussion options

You must be logged in to vote

global_convs only has a single GNN with message going from places to room, so it returns a dict with only room. The problem in the above code is that you are overwriting x_dict. Instead try something like

for conv in local_convs:
            x_dict.update(conv(x_dict, edge_index_dict))
            x_dict = {key: h.relu() for key, h in x_dict.items()}
for conv in global_convs:
            x_dict.update(conv(x_dict, edge_index_dict))
            x_dict = {key: h.relu() for key, h in x_dict.items()}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Jerome-Cong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants