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

How to use "pth" files in checkpoints. #1

Open
crx934080895 opened this issue Jul 6, 2021 · 0 comments
Open

How to use "pth" files in checkpoints. #1

crx934080895 opened this issue Jul 6, 2021 · 0 comments

Comments

@crx934080895
Copy link

I want to test the GIN model. Therefore, I downloaded "gin_best.pth" from "DIG_storage/xgraph/checkpoint/mutag/", and I used torch.load() to load it as following codes.
from dig.xgraph.models import GIN_3l model = GIN_3l(model_level='node', dim_node=dim_node, dim_hidden=128, num_classes=num_classes) model.load_state_dict(torch.load(pth_path, map_location=torch.device('cpu')))
It seems not match, and where can I get the model matched this "pth" file.

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