GAT Missing/Unexpected key(s) in state_dict #9584
Replies: 1 comment 8 replies
-
Hi, From what I see from your code, it seems to me that the problem lies somewhere where you get/load the parameters from the best_model.
You can only load_weights to a model that has been initialized if you are using lazy_initialization. I had a similar problem not so long ago and I had to adjust my code in order for it to work. I hope that your problem is similar and that it will solve it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using GAT for graph classification. I stored the model parameters of last several epochs through
state_dict
function. My GAT is defined as follows:I use the models of last several epochs to evaluate the test datasets and then average the performance. However, I got some trackback as follows:
I am not sure if it is the version problem or something wrong in my GAT model or the averaging performance implementation. What puzzles me is that this problem did not appear in the first place. It successfully executed several datasets, but the problem appeared after successfully executing several datasets.
Any suggestions are appreciated.🙏
Beta Was this translation helpful? Give feedback.
All reactions