-
When I tried to load my own graph data, there was an error about ----> 3 gg_trn = torch.load(os.path.join(path_data,'patch_graph_all_v1.pt'))
4 trn_ldr = DataLoader(gg_trn,batch_size=1000,shuffle=True)
~/.conda/envs/gnb_df_pyg/lib/python3.7/site-packages/torch/serialization.py in load(f, map_location, pickle_module, **pickle_load_args)
605 opened_file.seek(orig_position)
606 return torch.jit.load(opened_file)
--> 607 return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
608 return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
609
~/.conda/envs/gnb_df_pyg/lib/python3.7/site-packages/torch/serialization.py in _load(zip_file, map_location, pickle_module, pickle_file, **pickle_load_args)
880 unpickler = UnpicklerWrapper(data_file, **pickle_load_args)
881 unpickler.persistent_load = persistent_load
--> 882 result = unpickler.load()
883
884 torch._utils._validate_loaded_sparse_tensors()
~/.conda/envs/gnb_df_pyg/lib/python3.7/site-packages/torch/serialization.py in find_class(self, mod_name, name)
873 def find_class(self, mod_name, name):
874 mod_name = load_module_mapping.get(mod_name, mod_name)
--> 875 return super().find_class(mod_name, name)
876
877 # Load the data (which may in turn use `persistent_load` to load tensors)
ModuleNotFoundError: No module named 'torch_geometric.data.storage' I don't know how to solve this error. I think current My environment has these versions below. Current Python Version- 3.8.11 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, it looks like you need
No need to do any changes to the other packages. |
Beta Was this translation helpful? Give feedback.
Yes, it looks like you need
torch-geometric>=2.0.0
to load this data in. This should be achievable by just running:No need to do any changes to the other packages.