-
Notifications
You must be signed in to change notification settings - Fork 16
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
AttributeError: 'Graph' object has no attribute 'is_meta' #4
Comments
Hi, we are so sorry for our late response. Could you please provide the package version that you are currently using right now, especially for torch and torchdrug? As I checked in Torch's commit history, there is at least no such constraint The update for this constraint takes place in the following commit: pytorch/pytorch@ca7ece9 I guess it's worth a try to pass |
Hi! |
I tried to print out all keys and values pairs of the model state dictionary and I found these: |
Hi,
Thanks for sharing the codes for ANet. The ANet is trained and validated successfully but an error occurred in loading the checkpoint. Here are the details:
10:02:04 Load checkpoint from model_epoch_1.pth
Traceback (most recent call last):
File "/home/my_project_dir/script/run.py", line 62, in
train_and_validate(cfg, solver)
File "/home/my_project_dir/script/run.py", line 35, in train_and_validate
solver.load("model_epoch_%d.pth" % best_epoch)
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torchdrug-0.2.1-py3.9.egg/torchdrug/core/engine.py", line 242, in load
self.model.load_state_dict(state["model"], strict=strict)
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2138, in load_state_dict
load(self, state_dict)
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2120, in load
module._load_from_state_dict(
File "/home/akash/anaconda3/envs/astarnet_conda/lib/python3.9/site-packages/torch/nn/modules/module.py", line 2024, in _load_from_state_dict
if param.is_meta and not input_param.is_meta and not assign_to_params_buffers:
AttributeError: 'Graph' object has no attribute 'is_meta'
The text was updated successfully, but these errors were encountered: