-
When I used the create data set, nothing happened and I checked every data using data.validate(raise_on_error=True). Nothing happened. However, when I put GCNConv, I got the following exception: Exception: Encountered an index error. Please ensure that all indices in 'edge_index' point to valid indices in the interval [0, 5916] (got interval [0, 6288]), I wonder what caused this error? Is it because the node indicated by my edge_index exceeds the actual node index? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes thats probably what is happening. Hard to say why that's happening though. How did you batch your data. Feel free to share the part of your code that leads to this error, and the full stack trace. |
Beta Was this translation helpful? Give feedback.
I think I found the cause of the problem. I looked at the pyg source code and when I defined GCN, I used the method: GCNConv(nfeat, nhid,cached=True, normalize=True), I think it's cached=True because the model is using the previous edge_index, so I undid that, and I'm going to test it, I have tested 4 epochs and have found no problems so far