Open gsh150801 opened 12 months ago
I don't know whether it's caused by the version mismatched.
'''
pyg 2.3.0 py37_torch_1.13.0_cu116 pyg
pytorch 1.13.1 py3.7_cuda11.6_cudnn8.3.2_0 pytorch
pytorch-cluster 1.6.0 py37_torch_1.13.0_cu116 pyg
pytorch-cuda 11.6 h867d48c_1 pytorch
pytorch-mutex 1.0 cuda pytorch
pytorch-scatter 2.1.0 py37_torch_1.13.0_cu116 pyg
pytorch-sparse 0.6.15 py37_torch_1.13.0_cu116 pyg
pytorch-spline-conv 1.2.1 py37_torch_1.13.0_cu116 pyg
torchaudio 0.13.1 py37_cu116 pytorch
torchvision 0.14.1 py37_cu116 pytorch
'''
Things seemed like they were going pretty well until this part. It puzzled me. Have you met this problem? ''' %%time X = ReaderWriter.read_or_dump_data(file_name=norm_join_paths(targetdata_dir_raw, 'X.pkl'), data_gen_fun=get_X_all_pairdata_synergy, data_gen_params=(uniq_mol, pairs, "DataOGB")) ''' '''
PicklingError Traceback (most recent call last) in
/share1-100G/shguan/projs/drug_synergy_prediction/AI-synergyPredict-main/deepadr/utilities.py in read_or_dump_data(file_name, data_gen_fun, data_gen_params) 111 else: 112 data = data_gen_fun(*data_gen_params) --> 113 ReaderWriter.dump_data(data, file_name) 114 return data 115
/share1-100G/shguan/projs/drug_synergy_prediction/AI-synergyPredict-main/deepadr/utilities.py in dump_data(data, file_name, mode) 124 """ 125 with open(file_name, mode) as f: --> 126 pickle.dump(data, f) 127 128 @staticmethod
PicklingError: Can't pickle : it's not the same object as torch_geometric.data.storage.GlobalStorage '''