Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error adapting code #18

Closed
kalkidann opened this issue Oct 28, 2019 · 3 comments
Closed

Error adapting code #18

kalkidann opened this issue Oct 28, 2019 · 3 comments

Comments

@kalkidann
Copy link

Hey! I am facing some issues adapting your SimGNN code into my graph dataset. I keep encountering an error that says:

RuntimeError: Invalid index in scatterAdd at ../aten/src/TH/generic/THTensorEvenMoreMath.cpp:520

I even tried to change one of the training JSON files to the example of the labels and graph structure you gave. I also see a warning about size.

Am I missing something? Any help would be greatly appreciated.

@kalkidann
Copy link
Author

When I add extra labels to match the number of nodes it seems to work:

{"graph_1": [[0, 1],[1, 2],[2, 3],[3, 4]],
"graph_2": [[0, 1], [1, 2], [1, 3], [3, 4], [2, 4]],
"labels_1": [2, 2, 2, 2, 1],
"labels_2": [2, 3, 2, 3 , 5],
"ged": 1}

@benedekrozemberczki
Copy link
Owner

I believe scatter has changed. Will take a look.

@jonathan-goh
Copy link

When I add extra labels to match the number of nodes it seems to work:

{"graph_1": [[0, 1],[1, 2],[2, 3],[3, 4]],
"graph_2": [[0, 1], [1, 2], [1, 3], [3, 4], [2, 4]],
"labels_1": [2, 2, 2, 2, 1],
"labels_2": [2, 3, 2, 3 , 5],
"ged": 1}

Hey! I am facing some issues adapting your SimGNN code into my graph dataset. I keep encountering an error that says:

RuntimeError: Invalid index in scatterAdd at ../aten/src/TH/generic/THTensorEvenMoreMath.cpp:520

I even tried to change one of the training JSON files to the example of the labels and graph structure you gave. I also see a warning about size.

Am I missing something? Any help would be greatly appreciated.

Hello,

I am also experiencing the same error. My graphs are similar but of different sizes. For your dataset, how did you pad the smaller graph to the larger graph? did you just add in extra "labels"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants