The ‘data’ object was created by an older version of PyG. If this error occurred while loading
This problem occurs in the pytorch environment
reason
The torch-geometric version does not match the torch version,
Because the normal installation torch-geometric tutorial is: pip install torch-geometric The version installed in this way is version 2.0.X , and the version is not compatible.
For torch-geometric version 2.0.X, the error described above will occur when reading the data at this time. At this time, we need to download the torch-geometric version lower than 1.XX.
solution
Uninstall the original version first
Type in terminal
pip uninstall torch-geometric
Download version 1.XX again
After installing torch-geometric==1.6.0 version, the above error will not be reported
Type in terminal
pip install torch-geometric==1.6.0
problem solved