Skip to content

ValueError: 'cfg.optimizer_config' undefined #50

Description

@1799604432

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions