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

Dictionary error when training on OGB datasets #16

Open
AdarshMJ opened this issue Aug 31, 2023 · 0 comments
Open

Dictionary error when training on OGB datasets #16

AdarshMJ opened this issue Aug 31, 2023 · 0 comments

Comments

@AdarshMJ
Copy link

Hi!
I am trying to run the pruning for OGB datasets. I keep getting this error. Any idea how to resolve this? It runs for 1 epoch for 10 subgraphs and then I get this following error -

File "/home/relationalml/Desktop/Adarsh/GLT/Pruning/OGBN_proteins/unify/ogb/ogbn_proteins/main_imp.py", line 227, in <module>
    final_state_dict = main_get_mask(args, imp_num, resume_train_ckpt)
  File "/home/relationalml/Desktop/Adarsh/GLT/Pruning/OGBN_proteins/unify/ogb/ogbn_proteins/main_imp.py", line 178, in main_get_mask
    final_state_dict = pruning.save_all(dataset, 
  File "/home/relationalml/Desktop/Adarsh/GLT/Pruning/OGBN_proteins/unify/ogb/ogbn_proteins/pruning.py", line 73, in save_all
    'optimizer_state_dict': optimizer.state_dict()
  File "/home/relationalml/anaconda3/envs/gnnlottery/lib/python3.10/site-packages/torch/optim/optimizer.py", line 175, in state_dict
    packed_state = {(param_mappings[id(k)] if isinstance(k, torch.Tensor) else k): v
  File "/home/relationalml/anaconda3/envs/gnnlottery/lib/python3.10/site-packages/torch/optim/optimizer.py", line 175, in <dictcomp>
    packed_state = {(param_mappings[id(k)] if isinstance(k, torch.Tensor) else k): v
KeyError: 140292191978176
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

1 participant