You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use windows , pycharm to run your code, [If i use linux system, it has no problem at all]
I installed torch_geometric in window pc
--I can successfully import those packages from a console,(torch1.10.0, )
import torch
import torch_geometric 2.0.4
import torch_scatter 2.0.9
import torch_sparse 0.6.13
import torch_spline_conv 1.2.1
import torch_cluster 1.6.0
but this line
from torch_geometric.graphgym.optimizer import create_optimizer,
create_scheduler, OptimizerConfig, SchedulerConfig
it shows errors on .graphgym.optimizer (as unrecognized modules).
I can not import from torch_geometric.graphgym.optimizer import create_optimizer,
create_scheduler, OptimizerConfig, SchedulerConfig --- from console, it can not import
error--- module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'torch_geometric.graphgym.optimizer'
why linux system, it can import, and my window can not?
i try to replace from torch_geometric.graphgym.optimizer import
to from torch_geometric.graphgym.optim import ...
then when it goes to
optimizer = create_optimizer(model.parameters(),
new_optimizer_config(cfg))
it show errors, raise ValueError(f"'cfg.{arg_name}' undefined")
raise ValueError(f"'cfg.{arg_name}' undefined")
ValueError: 'cfg.optimizer_config' undefined
how can i solve this problem, thank you very much.
The text was updated successfully, but these errors were encountered:
I want to use windows , pycharm to run your code, [If i use linux system, it has no problem at all]
I installed torch_geometric in window pc
--I can successfully import those packages from a console,(torch1.10.0, )
import torch
import torch_geometric 2.0.4
import torch_scatter 2.0.9
import torch_sparse 0.6.13
import torch_spline_conv 1.2.1
import torch_cluster 1.6.0
but this line
from torch_geometric.graphgym.optimizer import create_optimizer,
create_scheduler, OptimizerConfig, SchedulerConfig
it shows errors on .graphgym.optimizer (as unrecognized modules).
I can not import from torch_geometric.graphgym.optimizer import create_optimizer,
create_scheduler, OptimizerConfig, SchedulerConfig --- from console, it can not import
error--- module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'torch_geometric.graphgym.optimizer'
why linux system, it can import, and my window can not?
i try to replace from torch_geometric.graphgym.optimizer import
to from torch_geometric.graphgym.optim import ...
then when it goes to
optimizer = create_optimizer(model.parameters(),
new_optimizer_config(cfg))
it show errors, raise ValueError(f"'cfg.{arg_name}' undefined")
raise ValueError(f"'cfg.{arg_name}' undefined")
ValueError: 'cfg.optimizer_config' undefined
how can i solve this problem, thank you very much.
The text was updated successfully, but these errors were encountered: