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

dgl.heterograph #230

Open
maryamag85 opened this issue Sep 7, 2021 · 2 comments
Open

dgl.heterograph #230

maryamag85 opened this issue Sep 7, 2021 · 2 comments

Comments

@maryamag85
Copy link

I need to create a hetrograph on a data with over 4M relationship. When I am running graph = dgl.heterograph({...}) in a loop over my relations, it works fine to 50K or so samples after that it starts to write null and nothing meaningful comes out of it. I guess that is a memory issue. Currently I am running on 64G Ram. How can I get over this issue?

@classicsong
Copy link
Contributor

Do you mean we have want to use dgl.heterograph({...}) when the {...} is a dict of 4M objects?
How large is the graph?

@maryamag85
Copy link
Author

Yes, the graph has around 4.6M edge types and when I am filling the graph dictionary it works fine up until it gets over 800K or so samples and over that it only keeps empty dictionary. I understand that it might be the limit of the python dictionary on a 64G ram system but I am wondering what can be the solution to get over this? How to input graphs with huge relation types into DGL?

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

2 participants