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

Unable to load the trained model for visualization #7

Open
amayuelas opened this issue Mar 21, 2023 · 0 comments
Open

Unable to load the trained model for visualization #7

amayuelas opened this issue Mar 21, 2023 · 0 comments

Comments

@amayuelas
Copy link

When running the visualize script, the system does not seem to be loading the model correctly

python script/visualize.py -c config/fb15k237_visualize.yaml --checkpoint path/to/epoch/model_epoch_10.pth

This is what it returns:

RuntimeError: Error(s) in loading state_dict for LogicalQuery:
	While copying the parameter named "fact_graph", expected torch.Tensor or Tensor-like object from checkpoint but received <class 'torchdrug.data.graph.Graph'>
	While copying the parameter named "graph", expected torch.Tensor or Tensor-like object from checkpoint but received <class 'torchdrug.data.graph.Graph'>
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

1 participant