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

ValueError: 'cfg.optimizer_config' undefined #50

Open
1799604432 opened this issue May 7, 2024 · 1 comment
Open

ValueError: 'cfg.optimizer_config' undefined #50

1799604432 opened this issue May 7, 2024 · 1 comment

Comments

@1799604432
Copy link

Hi, I met this issue, and I try to change the version of torch-geometric. But it have no effect.
I try the version from 1.3.0 to the latest.
Created a temporary directory at /tmp/tmpod96tla3
Writing /tmp/tmpod96tla3/_remote_module_non_scriptable.py
Traceback (most recent call last):
File "/media/tdq/25962996-51be-4a1c-89ae-bbc730928dbb/tdq/lrgb-main/main.py", line 140, in
optimizer = create_optimizer(model.parameters(),
File "/home/tdq/anaconda3/envs/graphgps/lib/python3.10/site-packages/torch_geometric/graphgym/optim.py", line 38, in create_optimizer
return from_config(func)(params, cfg=cfg)
File "/home/tdq/anaconda3/envs/graphgps/lib/python3.10/site-packages/torch_geometric/graphgym/config.py", line 588, in wrapper
raise ValueError(f"'cfg.{arg_name}' undefined")
ValueError: 'cfg.optimizer_config' undefined

@j-adamczyk
Copy link

I have the same error, did you manage to fix it?

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