Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProGAP Code Execution Errors #2

Open
Zening-Li opened this issue May 23, 2024 · 2 comments
Open

ProGAP Code Execution Errors #2

Zening-Li opened this issue May 23, 2024 · 2 comments

Comments

@Zening-Li
Copy link

Hi Sisaman:
So happy to see your code about ProGAP. I'm attempting to execute the code, but I encounter errors. Specifically, when the model is set to GNN-DP and the graph convolution layer is either GCN or GAT, an error arises during runtime:
ValueError: Attempted to use an uninitialized parameter in <built-in method empty_like of type object at 0x7f9ba553a140>. This error happens when you are using a LazyModule or explicitly manipulating torch.nn.parameter.UninitializedParameter objects. When using LazyModules Call forward with a dummy batch to initialize the parameters before calling torch functions.
Can you tell me how to fix the bug? Thanks.

@sisaman
Copy link
Owner

sisaman commented May 23, 2024

Can you give me the exact CLI command you use to reproduce the error?

@Zening-Li
Copy link
Author

Thank you for your response. The exact CLI command I used is: python train.py gnn node --dataset facebook --hidden_dim 16 --activation relu --optimizer adam --learning_rate 0.01 --repeats 1 --epochs 100 --batch_size 64 --verbose False --base_layers 1 --head_layers 1 --jk cat --epsilon 8.0 --project GNN.

To utilize the GCN architecture as the backbone GNN model, I modified core/methods/gnn/node.py at line 36 to conv='gcn'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants