Unable to compute the item to item matrix from example code #7443
-
Hello, However, I noticed in the example there is an interaction matrix we are computing (comat = mat.T @ mat), which breaks my instance. I have two questions:
Quite frankly new to using gnn's in pyg.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@husimplicity @HuxleyHu98 Do you have an understanding of how much memory we need to run this example? I agree that the sparse matrix multiplication here consumes a lot of memory, and we should probably fix this. @phileasme A more light-weight example of this model is presented in https://github.com/pyg-team/pytorch_geometric/blob/master/examples/hetero/bipartite_sage.py. It's a special model that makes use of the item2item graph, it's not a requirement of PyG. I agree that you can achieve something similar with two rounds of message passing. |
Beta Was this translation helpful? Give feedback.
-
@rusty1s @phileasme As tested, it consumes RSS=193563432KB, i.e. about 185GB to run the example. |
Beta Was this translation helpful? Give feedback.
@rusty1s @phileasme As tested, it consumes RSS=193563432KB, i.e. about 185GB to run the example.