GAT, sparse adjacency matrix, out-of-memory #389
Unanswered
RaphaelChristienECTL
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Here is an example of training a model in disjoint mode with sparse adjacency matrix. GAT should work pretty well with sparse inputs, so maybe you are accidentally converting the adjacency to dense somewhere in your code? Cheers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
thanks for Spektral !
I have been happy to see that there is a GAT convolution layer proposed :-)
The documentation states that this layer expects dense inputs when working in batch mode.
I am using a sparse matrix for A (adjacency matrix, numpy coo matrix) and a single data loader (I guess then that
this is not a batch mode then), as in the GAT example on the Spektral website.
Unfortunately, I am getting an out-of-memory message when launching the model fit, while
using the model GeneralGNN runs fine(but is not fit for my purpose).
Any hint why this might happen, or what to check/examples to make it work ?
By the way, I guess using a disjoint loader would still allow for the GAT to use sparse input matrix ?
Cheers !
Beta Was this translation helpful? Give feedback.
All reactions