pyg-team / pytorch_geometric

Graph Neural Network Library for PyTorch
https://pyg.org
MIT License
20.52k stars 3.57k forks source link

Fix issue #6891 #9454

Closed cshjin closed 2 days ago

cshjin commented 6 days ago

Fix issue #6891

Add a default value "None" to batch in the global pooling functions, including

rusty1s commented 5 days ago

I would like to avoid this since in 99% of the cases, batch is what you need to input. I am afraid making this argument having a default, this leads to numerous mis-uses downstream.