rampasek / GraphGPS

Recipe for a General, Powerful, Scalable Graph Transformer
MIT License
643 stars 114 forks source link

ValueError: 'cfg.optimizer_config' undefined #50

Open 1799604432 opened 4 months ago

1799604432 commented 4 months ago

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