gnn

Pytorch Geometric: 'from_networkx' doesn't work with my 'group_node_attrs'

Pytorch Geometric: 'from_networkx' doesn't work with my 'group_node_attrs' Question: I’ trying to convert a NetwrokX graph into the pyg format to feed it to a GCN. from_networkx(G) works without problems from_networkx(G, group_node_attrs=x) # doesn’t work, and I get the following error: Here the documentation about how the function ‘from_networkx’: https://pytorch-geometric.readthedocs.io/en/latest/_modules/torch_geometric/utils/convert.html Traceback (most recent call last): …

Total answers: 1