Open a-sarabi opened 1 year ago
Hi,
TopkPool and SAGPool work in disjoint or single mode (see docs here https://graphneural.network/layers/pooling/#topkpool). If you want to keep your data in batch mode you should consider other methods that support it, like MinCutPool (https://graphneural.network/layers/pooling/#mincutpool).
Read more about data modes here: https://graphneural.network/data-modes/
Cheers
I am currently working on implementing graph neural networks using the Spektral package in Python. I am trying to include pooling layers (such as TopKPool) in my model, but I am running into dimension issues.
I have created a sample code to reproduce the error. Here is the code:
When I run this code, I get the following error message:
I have tried using different pooling layers (SAGPool etc.) and checked the dimensions according to the package documentation, but I keep encountering the same error.
Here are Input dimensions:
I would greatly appreciate any assistance in resolving this issue.