-
Hello,
It just look to me that the way an edge type is saved in the state dict changed from "node1__edge__node2" to "<node1___edge___node2>". I did a fix to correct the keys to the new format but after the errors becomes something like:
Any suggestion on how to fix that or what is the reason would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
@ver228 Would you mind sharing your code and env details to reproduce the behaviour? I'm not sure yet but fb1d855 looks suspicious. |
Beta Was this translation helpful? Give feedback.
-
@akihironitta Sorry the delay I had a few deadlines and until now i had time to create a minimal example. The problem is a bit worse that i thought in my opinion. It seems that in torch_geometric==2.4 one cannot load a state dictionary if the model uses lazy initialisation. My minimal example is:
I tried to environments one for torch_geometric==2.3 and another with torch_geometric==2.4. They are basically identical except for the torch_geometric version. I am using The packages in torch_geometric==2.3 is:
The environment for torch_geometric==2.4 is:
While running the script above using
Finally if i tried to load a file created using
|
Beta Was this translation helpful? Give feedback.
-
Hey @EdisonLeeeee I apologised i made a couple of mistakes while copying the snippet. The observations I made still hold. Please take another look at it. I just edited it. In short the mistakes I made are:
|
Beta Was this translation helpful? Give feedback.
Thanks! That's great :)